Dear Mark,
Not exactly what you asked about, but from what you said about what
you are doing, maybe some of the following pages will be of use...
If you go to
http://www.sheepdogsoftware.co.uk/sc1main.htm
... and put ICS into the search box at the top, you will be given
links to a number
Further to earlier post
For IP/TCP (and serial i/o) for Lazarus, see also
http://wiki.freepascal.org/Synapse
I have one app that I wrote using Synapse which does a basic "fetch"
of a page from a webserver. (No tutorial written up for that.)
Sadly, as with WinHttp, although the relevant
Long time ago Marco van de Voort added FreePascal
conditional compilation. I dont know if this conditional compilation is
still there in current version. I'm pretty sure that I still have a
version. So if needed I do a search in my sources.
Once a while I write Linux applications using Lazaru