Sock2Text lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- skiy1337lazarus · 2015-08-20 05:09 Please don't deprecate this, I don't see any alternative in the documentation. http://www.freepascal.org/docs-html/rtl/sockets/sock2text.html Lots of protocols are text based! And I mean a lot. ---------------------------------------------------------------------- Thaddy · 2015-08-21 08:22 Yes, but very few if any are Pascal TEXT file based. http://wiki.freepascal.org/Text , Not text in the sense that you mean. The alternative is to use fp* functions, in this case FPSocketPair. There you can simply use the textbased protocol that you want. ---------------------------------------------------------------------- skiy1337lazarus · 2015-08-22 09:26 This worked for me on UNIX: PInteger(@Input)^:=MySocket;