Lecture 4
Client Process
A client process uses an ephemeral port, a random port number ranging from 32768 to 61000 on Linux, and from 49152 to 65535 on Windows, used for temporary connections.
Only one process can use one port number at a time.
Peer-to-Peer processes
- peer-to-peer process
- A process where the client and the server are both in one process. These are multithreaded, where the server thread listens on a well known port, and each client thread connects to a different server.
Socket Programming
stream sockets are used for TCP connections
- Uses a byte-stream abstraction, which provides in-order, reliable delivery.
datagram sockets are used for UDP connections