|
System Data Structures for Sockets
- In order to use a socket, the kernel needs to keep
track of several pieces of data
- Protocol Family: a parameter to the socket call
- Service Type (Stream, Datagram): parameter to socket
- Local IP Address: can be set with bind
- Local Port: can be set with bind
- Remote IP Address: can be set with connect
- Remote Port: can be set with connect
- Ultimately all 6 values must be known to communicate
|