Socket Code Examples

Synchronous Client Socket Example

Shows how to implement a synchronous Socket client that connects to a server and displays the data returned from the server.

Synchronous Server Socket Example

Shows how to implement a synchronous Socket server that accepts connections from a client and echoes back the data received from the client.

Asynchronous Client Socket Example

Shows how to implement an asynchronous Socket client that connects to a server and displays the data returned from the server.

Asynchronous Server Socket Example

Shows how to implement an asynchronous Socket server that accepts connections from a client and echoes back the data received from the client.

作者:chlyzone
出处:http://www.cnblogs.com/chlyzone/
欢迎转载,请在文章页面明显位置给出原文连接。
原文地址:https://www.cnblogs.com/chlyzone/p/1978289.html