Chapter 6: Advanced Sockets Programming Topics

 < Day Day Up > 



In this chapter, we investigate a variety of topics that lie beyond the basics of Sockets programming. We look at multi-homing, name resolution, error handling, blocking and nonblocking communication, and many other topics of Sockets application development. Although advanced, these topics are important for the development of efficient and effective Sockets applications. All code for this chapter can be found on the companion CD-ROM at /software/ch6.

Introduction

A number of disparate topics are discussed in this chapter; some are useful in everyday applications, whereas others are useful only in niche applications. The advanced Sockets programming topics covered here include:

  • Out-of-band (OOB) data

  • Nonblocking sockets

  • Determining peer socket closure

  • Resolving a domain name to an IP address

  • Writing servers for multi-homed nodes

  • Timing out a socket connect

  • Data framing

  • Connectionless and connected datagram sockets

  • Timing out a read or write operation

  • Determining peer information

  • Determining the protocol argument for socket

  • Identifying service ports and protocols



 < 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