[fpc-pascal] Thoughts on Shell Approach to TCP Sockets
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Thu Mar 19 09:12:41 CET 2015
Coyo Stormcaller wrote:
> Despite documentation and manuals, I have not figured out how to use TCP
> sockets in Object Pascal, since there doesn't seem to be a primitive for
> it, or any easy way to instantiate sockets and manipulate incoming
> connections.
>
> So my approach to sockets is to do it externally. A Bash shell script
> invokes another script, such as Ruby for binding the socket. Upon
> recieving a socket connection, it invokes an Object Pascal command line
> program, passing it socket traffic as standard input.
If you have to do it that way then I strongly suggest using the existing
netpipes (hose and faucet) utilities.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list