Recent

Author Topic: Howto open a socket in freepascal to later post on Raspberry  (Read 4622 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 255
Howto open a socket in freepascal to later post on Raspberry
« on: March 05, 2015, 09:36:00 am »
Does anyone have example code
howto open a TCP/IP socket
to later compile on
freepascal for linux/Raspbian linux for Raspberry

Later a post howto open a i2c bus.

Groet,

Wouter van Wegen


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Howto open a socket in freepascal to later post on Raspberry
« Reply #1 on: March 05, 2015, 09:47:42 am »
Afaik all the unit "sockets" examples in the documentation also will work on raspberry pi? The packages/fcl-net/examples and fcl-base/examples might hold examples of the units there (like ssockets)

ghamm

  • New Member
  • *
  • Posts: 29
Re: Howto open a socket in freepascal to later post on Raspberry
« Reply #2 on: March 30, 2015, 12:12:38 am »
Im using the Synapse tcpip tools on the Raspberry.. seems to work great.

ghamm

  • New Member
  • *
  • Posts: 29
Re: Howto open a socket in freepascal to later post on Raspberry
« Reply #3 on: April 20, 2015, 05:22:34 am »
Hi,
I tried to make a multi-threaded server with synapse.. but gave up.. it had some issues.. Re-wrote one I had for windows that I wrote about 10 years ago.. seems stable if you would like it..

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Howto open a socket in freepascal to later post on Raspberry
« Reply #4 on: April 20, 2015, 07:19:22 pm »
Control Terminal has simple Synapse code and might be worth a look: http://ctrlterm.com/
Regards,
Paul Breneman
www.ControlPascal.com

ghamm

  • New Member
  • *
  • Posts: 29
Re: Howto open a socket in freepascal to later post on Raspberry
« Reply #5 on: April 20, 2015, 08:01:49 pm »
It works fine..most times..but if  you close the socket , and try to restart the app.. the Listening socket becomes orphaned..

I wrote my own, seems better..

BTW,
I am just starting a facebook page for the raspberry pi and pascal..

https://www.facebook.com/groups/RaspberryPascal/


 

TinyPortal © 2005-2018