文本中的示例程序创建一个接收来自客户端的连接请求的服务器。该服务器是用同步套接字生成的,因此在等待来自客户端的连接时不挂起服务器应用程序的执行。该应用程序接收来...
代码说明:
文本中的示例程序创建一个接收来自客户端的连接请求的服务器。该服务器是用同步套接字生成的,因此在等待来自客户端的连接时不挂起服务器应用程序的执行。该应用程序接收来自客户端的字符串,在控制台显示该字符串,然后将该字符串回显到客户端。来自客户端的字符串必须包含字符串“”,以发出表示消息结尾的信号。-version of the sample program to create a client from receiving a link to the server. The server is simultaneously generated socket, waiting for the client from the connection is not purely server applications implementation. The application received from the client"s string, the console showed that the string, and then save the string back significantly to the client. From the client"s string must contain the string "lt; EOFgt; , "Said information sent to the end of the signal.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!