Winsock

This example uses Winsock to send and receive data from one computer to another using TCP or UDP protocols. It could be client to server or client to client communication. It could even be used with a peripheral device. IPv4 and IPv6 are supported.

Win API Functions used:

accept OutputDebugString
bind recv
closesocket recvfrom
connect RtlMoveMemory
FormatMessage select
freeaddrinfo send
getaddrinfo sendto
gethostname setsockopt
getpeername shutdown
getsockname socket
getsockopt WNetGetUser
htons WSAAddressToString
inet_ntoa WSAAsyncSelect
ioctlsocket WSACleanup
listen WSAGetLastError
ntohs WSAStartup


——— Last updated 04/14/2023 ———