You are previewing Network Programming for Microsoft® Windows®, Second Edition.
O'Reilly logo
Network Programming for Microsoft® Windows®, Second Edition

Book Description

The authoritative guide to writing network-enabled applications with Windows XP and legacy Windows APIs, Visual C#™ .NET, and advanced IP protocols

While it's relatively easy to write network-enabled applications for older Windows® versions, the networking features of Microsoft® Windows XP have not been well documented—until now. This updated programming guide focuses on the innovative networking features in Windows XP, plus the breakthrough networking support in the Microsoft Visual C#™ .NET programming language. It also covers the latest Internet protocols: IPv4 and IPv6, and reliable IP multicasting protocols. This title is ideal for developers who need clear, practical information about Microsoft networking APIs or for network technicians or administrators who seek inside information about how Microsoft networks operate. If you program or work closely with current Microsoft or Internet networking software, this is the book for you.

Table of Contents

  1. Copyright
  2. Dedication
  3. Acknowledgments
  4. Introduction to Winsock
    1. Winsock Headers and Libraries
    2. Initializing Winsock
    3. Error Checking and Handling
    4. Addressing a Protocol
    5. Creating a Socket
    6. Connection-Oriented Communication
    7. Connectionless Communication
    8. Miscellaneous APIs
    9. Windows CE
    10. Conclusion
  5. Winsock Design
    1. System Architecture
    2. Protocol Characteristics
    3. Winsock Catalog
    4. Conclusion
  6. Internet Protocol
    1. IPv4
    2. IPv6
    3. Address and Name Resolution
    4. Writing IP Version–Independent Programs
    5. Conclusion
  7. Other Supported Protocols
    1. Infrared Sockets
    2. IPX/SPX
    3. NetBIOS
    4. AppleTalk
    5. ATM
    6. Conclusion
  8. Winsock I/O Methods
    1. Socket Modes
    2. Socket I/O Models
    3. I/O Model Consideration
    4. Conclusion
  9. Scalable Winsock Applications
    1. APIs and Scalability
    2. Scalable Server Architecture
    3. Resource Management
    4. Server Strategies
    5. Winsock Direct and Sockets Direct Protocol
    6. Conclusion
  10. Socket Options and Ioctls
    1. Socket Options
    2. Ioctlsocket, WSAIoctl, and WSANSPIoctl
    3. Conclusion
  11. Registration and Name Resolution
    1. Background
    2. Name Space Models
    3. Registering a Service
    4. Service Registration Example
    5. Querying a Service
    6. Conclusion
  12. Multicasting
    1. Multicast Semantics
    2. IP Multicasting
    3. Reliable Multicasting
    4. ATM Multipoint
    5. Conclusion
  13. Generic Quality of Service
    1. Background
    2. QOS and Winsock
    3. Terminating QOS
    4. Programming QOS
    5. Examples
    6. ATM and QOS
    7. Conclusion
  14. Raw Sockets
    1. Raw Socket Creation
    2. ICMP
    3. Using IP Header Include Option
    4. Conclusion
  15. The Winsock Service Provider Interface
    1. Layered Service Provider
    2. Name Space Providers
    3. Conclusion
  16. .NET Sockets Programming Using C#
    1. Overview
    2. Addressing Protocols
    3. Name Resolution
    4. Sending and Receiving Data
    5. Exception Handling
    6. Samples
    7. Conclusion
  17. The Microsoft Visual Basic Winsock Control
    1. Properties
    2. Methods
    3. Events
    4. UDP Example
    5. TCP Example
    6. Limitations
    7. Common Errors
    8. The Windows CE Winsock Control
    9. Conclusion
  18. Remote Access Service
    1. RAS Client
    2. Compiling and Linking
    3. Data Structures and Platform Compatibility Issues
    4. DUN 1.3 Upgrade and Windows 95
    5. RasDial
    6. Phonebook
    7. Connection Management
    8. VPN
    9. Conclusion
  19. IP Helper Functions
    1. Ipconfig
    2. Netstat
    3. Route
    4. ARP
    5. Conclusion
  20. About the Author
    1. Anthony Jones
    2. Jim Ohlund