Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-10

TCP client required... List still active??

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

George Patterson

Sorry about the noise but is this list active??

I am trying to write a simple tcp/ip client but can not find anything in the 'net (using Google anyway). I did find a server code in the fpc archives but no clients. (This could be a good demo, perhaps with code that would set text revived from one ip address to the others like a simple talker room.)

The client will connect to the server and retreive values (similar to snmp) and act upon them ie modifying other values or performing action via USB(ignore the USB aspect for the purpose of discussion.)

Even just some pointers on chnaging the server code into a client.

Thanks

George Patterson

Reply by email

Michael Weinert
to George Patterson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 6. Oktober 2003 07:16 schrieb George Patterson:

Hi,

Sorry about the noise but is this list active??

Yes,

Show quoted text 9 lines
I am trying to write a simple tcp/ip client but can not find anything in the 'net (using Google anyway). I did find a server code in the fpc archives but no clients. (This could be a good demo, perhaps with code that would set text revived from one ip address to the others like a simple talker room.) The client will connect to the server and retreive values (similar to snmp) and act upon them ie modifying other values or performing action via USB(ignore the USB aspect for the purpose of discussion.) Even just some pointers on chnaging the server code into a client.

fpc comes with a package inet. Just look for the sample code pfinger and you have your client-code.

Michael.

- --

SysQuadrat
Michael Weinert Stuttgart Filderstadt-Plattenhardt Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273 http://www.linux-firewall.de
KeyServer hkp://pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iQGlAwUBP4EOyqvpi4/XslceAQIXsQyAlBwMcFAHbwUvNAq3dIprzEnuz0LeCN0g JtaanEaavFdhvKXSPBLufgq4pR5o0Z1s2YHXFvctvkKPrn2x87D0HVrGLaTdZt3f piz26nJVIntPIh/wYFMhmoMUhFpNZLLPo8ev17K1iIEtwGOvZEYnaVts7dteTjGj cFAfq/JZu3fOgrQjJx4GFfQdsyVPhoNfDySxtWungtjyC5VlZeBnErC88ZwO37n6 77fyQo0LjOrLEL8cfLpnUgFpadRk/Px0Htkt4KXI+6qt4ysp4XQo6+Z0rsYh27j1 HEEePTVxd617gGkb4E/VCHu5z46qqt8RbDBnEs8nQwLHJp6WE+VqfKcg142UGaxU YoPktDP9g4YyGIkNbH2s5guF8ASjSQWcX8Axjm60+83B1fqxji8FJQSMVgk/4VrF 8tEulngmr+e6ruoUADg5sTjY6eU5ul+BVwmRcc2x45+SLaBO+385FnRrV/dB82gi gQQ2X7BG8hehi6F20wx4lW3lT4J+P0/YDse/ajs6LjzRDPdoSbwAIg== =2lEi
-----END PGP SIGNATURE-----

Reply by email

Michael Van Canneyt
to George Patterson: Sorry about the noise but is this list active?? I am trying to write a simple tcp/ip…
George Patterson wrote 14 lines
Sorry about the noise but is this list active?? I am trying to write a simple tcp/ip client but can not find anything in the 'net (using Google anyway). I did find a server code in the fpc archives but no clients. (This could be a good demo, perhaps with code that would set text revived from one ip address to the others like a simple talker room.) The client will connect to the server and retreive values (similar to snmp) and act upon them ie modifying other values or performing action via USB(ignore the USB aspect for the purpose of discussion.) Even just some pointers on chnaging the server code into a client.

The pfinger example that comes with the inet unit or the netdb unit give code for clients.

If you want more extensive functionality, the synapse package (I think it is in the contributed units list) gives a full set of TCP/IP components. It works with FPC.

Michael.

Reply by email

Lukas Gebauer
to George Patterson: Sorry about the noise but is this list active?? I am trying to write a simple tcp/ip…

Take a look to my Synapse... ;-)

Show quoted text 9 lines
I am trying to write a simple tcp/ip client but can not find anything in the 'net (using Google anyway). I did find a server code in the fpc archives but no clients. (This could be a good demo, perhaps with code that would set text revived from one ip address to the others like a simple talker room.) The client will connect to the server and retreive values (similar to snmp) and act upon them ie modifying other values or performing action via USB(ignore the USB aspect for the purpose of discussion.)
Lukas Gebauer. E-mail: http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.

Reply by email

George Patterson
to Lukas Gebauer
Show quoted text 13 lines
Take a look to my Synapse... ;-) > I am trying to write a simple tcp/ip client but can not find > anything in the 'net (using Google anyway). I did find a server code > in the fpc archives but no clients. (This could be a good demo, > perhaps with code that would set text revived from one ip address to > the others like a simple talker room.) > > The client will connect to the server and retreive values (similar > to snmp) and act upon them ie modifying other values or performing > action via USB(ignore the USB aspect for the purpose of discussion.)

Okay... I think I understand the code examples/demo that come with Synapse. But where do I copy the library on a FreeBSD box.

Thanks for the newbie help.

George

Reply by email

George Patterson
to Michael Van Canneyt: The pfinger example that comes with the inet unit or the netdb unit give code for clients.
Show quoted text 5 lines
The pfinger example that comes with the inet unit or the netdb unit give code for clients.

I tried compiling pfinger and it wouldn't work. Gave up... Just tried it and realised that finger on this machine was running on port 1079. I changed the code to reflect the IP port chnage and it works. :-D

If you want more extensive functionality, the synapse package (I think it is in the contributed units list) gives a full set of TCP/IP components. It works with FPC.

Reading through the pfinger source, the simple I/O of inet will suffice for this working concept.

Considering it have been 12 years since I did any pascal programming, I'm finding it straight forward, if a little wobbly

Thanks all...

George Patterson

Reply by email