Can anyone point me to a good tutorial on client sockets set to ctblocking

I have been trying to write in ISAPI extension, which wasn't too much
of a problem, but now I need to make it communicate with another
machine.... I already have a standalone delphi app that talks to the
other machine, so I have proved the logic out, but I have been using
ctnonblocking mode up until now, and unfortunately this will just not
work in ISAPI....

Can someone point me to a tutorial page for using ctblocking streams
with lots of examples?

Thanks in advance,

Dodgy.