What is a socket descriptor? Draw its structure and explain its components
The socket descriptor is a stuffed word integer that delegates a socket and allows the application plan of actions to refer to when needed. Components of socket descriptor are grouped into three local-address, protocol, and local-port. The application process on host whether IP/TCP is a port. The protocol can be defined as an algorithm or procedure for transmitting data betwixt electronic devices like computers. Local address is the address of a resource in the computer being used
Figure 1 Socket descriptor structure
Note Service is the transport protocol.
Ip -address of the computer
Port specifies which process is on the computer.
Comments
Leave a comment