The following code examples demonstrate how to use the Socket class as a client to connect to remote network services and as a server to listen for connections from remote clients.
Shows how to implement a synchronous Socket client that connects to a server and displays the data returned from the server.
Shows how to implement a synchronous Socket server that accepts connections from a client and echoes back the data received from the client.
Shows how to implement an asynchronous Socket client that connects to a server and displays the data returned from the server.
Shows how to implement an asynchronous Socket server that accepts connections from a client and echoes back the data received from the client.
Provides basic information about the System.Net.Sockets namespace and the Socket class.
Describes how to use standard Internet security and authentication techniques.