Page 1 of 1

Sockets

PostPosted: Fri Aug 17, 2012 12:19 am
by Jeff Barnes
I would like to be able to send data across the internet using sockets...
The idea is to have multiple "clients" sending to one receiver station.

Just testing on a local system (using IP 127.0.0.1) I can only seem to get one connection working using the sample file in FWH\Samples.
Can someone please give me a sample of how I would do multiple connections?

Also, is there a limit on the number of connections that can be made at one time?

Re: Sockets

PostPosted: Fri Aug 17, 2012 9:23 am
by Antonio Linares
Jeff,

Please review Daniel's Class HBSocket that is a socket server able to attend multiple clients:

http://code.google.com/p/harbour-websocket/source/browse/trunk/src/prg/hbsocket.prg

It is based on Harbour's sockets implementation

I think thats quite close to what you are looking for :-)