文件名称:select模型 socket
文件大小:12KB
文件格式:TXT
更新时间:2012-08-14 17:20:19
select模型
Description: // // This sample illustrates how to develop a simple echo server Winsock // application using the select() API I/O model. This sample is // implemented as a console-style application and simply prints // messages when connections are established and removed from the server. // The application listens for TCP connections on port 5150 and accepts // them as they arrive. When this application receives data from a client, // it simply echos (this is why we call it an echo server) the data back in // it's original form until the client closes the connection. //