MSDN Documentation

Windows Networking Documentation

Welcome to the comprehensive documentation for Windows networking. This section covers the core networking components, APIs, protocols, and best practices for developing network-aware applications and services on the Windows platform.

Key Areas

Network Protocols

Windows supports a wide range of network protocols. Understanding these is crucial for effective network programming.

TCP/IP Suite

The Transmission Control Protocol/Internet Protocol (TCP/IP) suite is the foundation of modern networking. This includes:

Other Protocols

Networking APIs

Windows provides several powerful APIs for network programming.

Winsock (Windows Sockets API)

The primary API for low-level network communication. It provides an interface to the underlying network protocols.

Core Functions

socket(): Creates a socket.

bind(): Associates a local address with a socket.

listen(): Marks a socket to listen for incoming connections.

accept(): Accepts a connection on a listening socket.

connect(): Establishes a connection to a remote host.

send(), recv(): Sends and receives data.

closesocket(): Closes a socket.

I/O Completion Ports (IOCP)

For high-performance, asynchronous I/O operations, IOCP is highly recommended.

Key Functions

CreateIoCompletionPort(): Creates or associates a handle with an I/O completion port.

PostQueuedCompletionStatus(): Posts an I/O completion status packet to the completion port.

GetQueuedCompletionStatus(): Retrieves a completion status packet from the completion port.

WinHTTP

A lower-level API for client-side HTTP communication, suitable for services and non-interactive applications.

WinSock Kernel (WSK)

A kernel-mode socket interface for developing network drivers and filters.

Networking Services

Understand the key Windows networking services and how they impact your applications.

Network Security

Securing network communications is paramount.

Secure Programming Practices

Performance Tuning

Optimize your network applications for speed and efficiency.