Hello Trygve.
Here is some stuff I think you'll find useful.
http://web.tiscalinet.it/qubex/winsck.zip
It's Winsock I found on some magazine CD.