Windows Win32 Network Functions
Explore the comprehensive set of Win32 API functions for network programming on Windows.
Core Networking Functions
getaddrinfo
Resolves a hostname or service name to an address structure.
getnameinfo
Translates a socket address structure to a host name and service name.
socket
Creates a socket that is used to send and receive data.
bind
Associates a local name with a socket.
connect
Establishes a connection to a specified remote application.
listen
Puts a socket into a listening state.
accept
Accepts a connection from a client on a socket.
send
Sends data on a connected socket.
recv
Receives data from a connected socket or a bound connectionless socket.
closesocket
Closes an existing socket.
Name Resolution and DNS
gethostbyname
Retrieves information about the local host.
gethostbyaddr
Retrieves the standard names for the given host address.
DnsQuery_A
Retrieves DNS records for a specified host name.
DnsValidateName_A
Validates the format of a DNS name.
Networking Management and Information
GetAdaptersInfo
Retrieves detailed information about all network adapters.
GetNetworkParams
Retrieves network configuration parameters.
GetHostName
Retrieves the standard host name for the local computer.
Winsock Functions
WSAStartup
Initiates the use of the Winsock DLL.
WSACleanup
Shuts down the Winsock service.
WSAGetLastError
Retrieves the error code for the last Winsock function failure.