coost
coost copied to clipboard
[Question]如何从Server类中发送数据
tcp::Server 类没有记录 Connection 对象的功能,当 on_connection 创建了 Connection 对象,只能在回调函数里边进行发送。如果 Server 想要向 Connection 发送数据时,无法找到 Connection。