[fpc-pascal] Socket pair

Paul Breneman Paul2006 at BrenemanLabs.com
Mon Oct 3 14:24:15 CEST 2016


On 10/03/2016 03:27 AM, Santiago A. wrote:
> I've seen that "accept" functions with socket pairs are deprecated. And
> fpsocketpair returns always -1.
>
> How do you get the in and out streams when a server  accepts a new
> client connection? I have seen some server examples, like isocksrv.pp,
> but only read from client and send nothing back to client.
>
> can anyone point and example with pair of sockets or bidirectional
> connection communication?

Thanks for reminding me about a socket (and serial) echo example that I 
wrote for a work project six months ago.  I'll try to release it here in 
the next day or two:
   http://ctrlterm.com/custom.htm

Regards,
Paul
www.ControlPascal.com




More information about the fpc-pascal mailing list