An abstraction for inter-process communication.
Types of sockets:
Socket Options
REUSEADDR
- Lets you listen to the same address multiple times on the same machine BROADCAST
- Lets you send on the UDP broadcast address
- Combine with REUSEADDR to broadcast to multiple “nodes” on the same machine TCP_NODELAY
- Disable packet coalescing (so individual packets don’t get grouped) TIMEOUT
- Return (an error) if no data is received after a specified duration