[fpc-pascal] Serial to TCP gateway in FPC?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jun 22 09:53:11 CEST 2017


On 21/06/17 23:00, Bo Berglund wrote:
> On Thu, 22 Jun 2017 00:30:27 +0200, Bo Berglund<bo.berglund at gmail.com> wrote:
>> I looked at the socket unit, which has the advantage that it is part>of FPC. But the documentation is very confusing...>For example I was looking at fpconnect:>https://www.freepascal.org/docs-html/rtl/sockets/fpconnect.html>and noted that the example does NOT use fpconnect at all, instead it>uses a depreciated Connect method with strange arguments...>Is there some updated documentation somewhere?
> OOPS! After I sent my earlier message I realized that the fpconnectexample uses code that attaches the socket to textfiles Sin and Sout.But my use is specifically NOT a text based system, all data arebinary and no iterpretation whatsoever of the content is allowed.
> Can I still use the sockets unit with fpconnect? Or must I use thedepreciated Connect method so I can specify the files as binary ortext files? Connect is overloaded....

I've not looked at the example but sockets should be transparent.

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