Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-20 Thread Michael Schnell
On 03/20/2015 12:18 AM, Coyo Stormcaller wrote: With a Userspace TCP/IP stack, I can send strange traffic with a raw UDP port. In fact colleagues of mine once in Delphi implemented a TCP - like solution that uses UDP transfer to do secure, especially low overhead transfers via GPRS. So

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-20 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 03/20/2015 12:18 AM, Coyo Stormcaller wrote: With a Userspace TCP/IP stack, I can send strange traffic with a raw UDP port. In fact colleagues of mine once in Delphi implemented a TCP - like solution that uses UDP transfer to do secure, especially low overhead

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Michael Van Canneyt
On Wed, 18 Mar 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. There are at least

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Coyo Stormcaller
On 03/19/2015 04:25 AM, Mark Morgan Lloyd wrote: While it is possible to write a complete stack from scratch in any reasonably-complete programming language, and while this has been done for e.g. embedded systems (or by idiots such as myself for demonstration/testing purposes :-), in practice

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Mark Morgan Lloyd
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

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Marco van de Voort
In our previous episode, Coyo Stormcaller said: 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. There are four

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Coyo Stormcaller
On 03/19/2015 02:27 AM, Michael Van Canneyt wrote: If I may suggest, if you simply want to invoke a program with a socket as standard input, you can just use (x)inetd, it comes by default on all unix installations, and does just that: it is started by init, manages TCP/IP connections and

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-19 Thread Mark Morgan Lloyd
Coyo Stormcaller wrote: On 03/19/2015 02:27 AM, Michael Van Canneyt wrote: If I may suggest, if you simply want to invoke a program with a socket as standard input, you can just use (x)inetd, it comes by default on all unix installations, and does just that: it is started by init, manages

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-18 Thread Paul Breneman
On 03/18/2015 06:57 PM, 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. There is source code

[fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-18 Thread Coyo Stormcaller
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