FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sockets
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Sockets
Posted: 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)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Sockets
Posted: Fri Aug 17, 2012 09: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

Continue the discussion