Sockets
What are Sockets?
- Sockets provide a standard connection protocol which enables the
communication of data over a network
- Sockets support connections in the form of both virtual circuits
(TCP streams) and datagrams (UDP packets)
- Sockets can be configured to act as a client (the initiator of
a connection) or as a server (the acceptor of a connection)
- The socket then acts as a file handle that can be read from or written to