Summary

 < 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 > 



BSD Sockets Programming from a Multi-Language Perspective
Network Programming for Microsoft Windows , Second Edition (Microsoft Programming Series)
ISBN: 1584502681
EAN: 2147483647
Year: 2003
Pages: 225
Authors: Jim Ohlund

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net