Currently i am using indy10 with freepascal un linux creating an webserver that can can server pages/files using remobjects pascalscript and sqlite.

Indy 10 for freepascal: http://www.indyproject.org/sockets/fpc/index.en.aspx
Documentation: http://www.indyproject.org/Sockets/Docs/index.EN.aspx do check out the online documenation.

Demos:
http://www.indyproject.org/Sockets/Demos/index.EN.aspx

More Demos:
http://www.atozed.com/indy/demos/10/index.EN.aspx

Regarding your using tcp-server/client with tstreams see this post:
http://borland.newsgroups.archived.a...050206552.html (no need to use tbytes directly)