美文网首页区块链学习笔记
The architecture of websocketpp

The architecture of websocketpp

作者: 杨小伟的世界 | 来源:发表于2018-07-29 10:15 被阅读0次

Relationship between endpoint and connection.

       transport_type                       transport_type::transport_con_type                    
       (                                    (                                 
        iostream::endpoint<>                 iostream::connection<>             
        asio::endpoint<>                     asio::connection<>                 
       )                                    )                                 
       +---------------------+              +---------------------+           
       |                     |              |                     |           
       |                     |              |                     |           
       +---------------------+              +---------------------+           
                  |                                    |                      
                  |                                    |                      
                  v                                    v                      
       endpoint                             connection                          
       +---------------------+              +---------------------+           
       |                     |              |                     |           
       |                     |    <====>    |                     |           
       |                     |              |                     |           
       +---------------------+              +---------------------+           
  
            /           \
          /               \
        /                   \
   client                  server
   +------------+          +------------+
   |            |          |            |
   +------------+          +------------+

The relationship between config.

       server config                       client config

       core                                core_client
       +-------------+                     +-------------+               
       |             |                     |             |               
       +-------------+                     +-------------+               
         /          \                        /          \                
        /            \                      /            \               
       /              \                    /              \              
   asio              asio_tls          asio_client       asio_tls_client        
   +---------+       +---------+       +---------+       +---------+     
   |         |       |         |       |         |       |         |     
   +---------+       +---------+       +---------+       +---------+     

相关文章

网友评论

    本文标题:The architecture of websocketpp

    本文链接:https://www.haomeiwen.com/subject/sorzmftx.html