[fpc-pascal] Socket pair

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Oct 3 16:41:10 CEST 2016


On 03/10/16 12:00, Michael Van Canneyt wrote:
> On Mon, 3 Oct 2016, Santiago A. wrote:

>> can anyone point and example with pair of sockets or bidirectional
>> connection communication?
>
> The same socket descriptor (stream, if you want) can be used for reading
> and
> writing. The descriptor uses different buffers for read and write
> operations.
>
> I will try to extend the sample programs so this is made more clear.

What would be useful in that example would be extracting the IP address 
of the server, not just of the client. However when I look at the usage 
of Accept() I can't help but notice that it doesn't match what's 
described at the top of the page.

http://www.freepascal.org/docs-html/current/rtl/sockets/fpaccept.html

-- 
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