SocketSniff allows you to watch the Windows Sockets (WinSock) activity of the selected process.
For each created socket, the following information is displayed: socket handle, socket type, local and remote addresses, local and remote ports, total number of send receive bytes, and more. You can also watch the content of each send or receive call, in Ascii mode or as Hex Dump.
HS Sockets C Source Library
HS Sockets is a C source code library for interfacing to network socket layer. HS Sockets runs on Windows desktop OS (XP,Vista,7), Windows Mobile OS and on Linux OS. HS Sockets is supplied with full C source code and binaries for these platforms. HS Sockets optionally supports secure network sockets using OpenSSL library. HS Sockets hides the complexity of low level socket api from user application.