Sockets

Sockets

Postby Jeff Barnes » Fri Aug 17, 2012 12:19 am

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?
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Sockets

Postby Antonio Linares » Fri Aug 17, 2012 9:23 am

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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 104 guests