| < Day Day Up > |
|
In this chapter, we summarized the major socket options that can be used to change the default behavior of sockets. The setsockopt call is used to set socket options, whereas the getsockopt call is used to read them. Socket options exist at three levels, socket (SOL_SOCKET), TCP (IPPROTO_TCP), and IP (IPPROTO_IP). The layers correspond to the specific layers within the TCP/IP stack. Although most socket options utilize integer options, some structures are also used for more complex configurations.
| < Day Day Up > |
|