PNP : Chat server

將某個連接上的消息發送到其他連接上。 Broadcasting IP廣播不支持TCP。需要自己實現 Pub/Sub。 要考慮單臺故障不影響其他機器。 pub, hub, sub. 其中hub收到pub的消息,發送到sub上。 使用shared_ptr實現copy on write : example/asio/chat/server_thread_efficient.cpp 使用thread_lo
相關文章
相關標籤/搜索