This topic provides examples of sockets programs that use the most
basic design.
These examples provide a basis for more complex socket
designs. These sample programs provide examples of the most common types of
socket programs.
Create a connection-oriented socket
These server and client examples illustrate socket APIs written for a connection-oriented protocol such as Transmission Control Protocol (TCP).
Create a connectionless socket
Connectionless sockets do not establish a connection over which data is transferred. Instead, the server application specifies its name where a client can send requests.