📜  被动和主动套接字 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:16.282000             🧑  作者: Mango

代码示例1
Sockets come in two primary flavors: active and passive. An active socket is connected to a remote active socket via an open data connection. Closing the connection destroys the active sockets at each end point. A passive socket is not connected, but rather awaits an incoming connection, which will spawn a new active socket.