select模型 socket

时间:2012-08-14 17:20:19
【文件属性】:
文件名称: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. //

网友评论

  • 非常感谢,正需要这个呢,谢谢了
  • 正在研究select模型的socket,但这个是c/c++版本的吧,我还以为是c#的。
  • 正在研究SOCKET,看到个SELECT模型,正好也学一下。解释得还算可以。
  • 还行,学习了,对新手还是比较有用的
  • 就一个txt文件啊,不过还算切题
  • 不错,框架搭比较简单 有助于理解select模型
  • 正在研究SOCKET,看到个SELECT模型,正好也学一下。解释得还算可以。