there is something out there called CSocketMaster.
It is a class for doing the stuff the Winsock control does
http://www.freevbcode.com/ShowCode.asp?ID=6485