It is very difficult to debugger network applications without pretty much having complete access to the all code.

I highly recommend raw winsock.

Kuphryn