区块链学习笔记

The architecture of websocketpp

2018-07-29  本文已影响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        
   +---------+       +---------+       +---------+       +---------+     
   |         |       |         |       |         |       |         |     
   +---------+       +---------+       +---------+       +---------+     

上一篇 下一篇

猜你喜欢

热点阅读