Search found 97 matches: sockcli

Return to advanced search

Re: REFRESCAR BROWSE Y CONSULTA SQL AUTOMATICAMENTE

... Me interesa mucho, porque es verdad, de la forma que yo lo hago hago muchas consultas que el 95% de las veces son innesesarias En \Samples tienes sockcli.prg y sockserv.prg para que puedas testear el funcionamiento de los sockets, a mí me sirvió mucho para poder implementarlos en una aplicación ...
by VictorCasajuana
Thu Jul 28, 2022 7:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: REFRESCAR BROWSE Y CONSULTA SQL AUTOMATICAMENTE
Replies: 5
Views: 494

Re: SOCKETS

Revisa los ejemplos sockserv.prg y sockcli.prg en FWH\samples
by Antonio Linares
Fri Oct 11, 2019 4:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKETS
Replies: 10
Views: 1487

Re: La magia de los Sockets

... cMsg )      oSocket:SendData( "MSG " + cMsg )   endifReturn lSucess  Tome como referencia los ejemplos de sockserv.prg y sockcli.prg de FWH.
by albeiroval
Mon May 21, 2018 5:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: La magia de los Sockets
Replies: 19
Views: 5043

Another for Sockserv and sockcli

I understood that there is an sample called sockserv.prg One time I run the exe it listen if there are oclients on lan ( sockcli.prg) I understood I must make an array to save all client is connected to server ( I must save the nsocket, the name and the ip of client) The server before ...
by Silvio.Falconi
Mon Apr 30, 2018 8:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Sockserv and sockcli
Replies: 0
Views: 420

Re: send a data to a client

yes SERVER---> Sockserv-prg one PC----------------------------> Sockcli.prg Second Pc ----------------------->Sockcli.prg third Pc -------------------------- >Sockcli.prg Now I stay on server and send a message ...where I sent the message only to ...
by Silvio.Falconi
Sat Apr 28, 2018 7:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: send a data to a client
Replies: 6
Views: 1219

Re: send a data to a client

Silvio,
did you try sockcli.prg and sockserv.prg in two different computers?
In example in sockserv.prg

Code: Select all  Expand view
  DEFINE BUTTON OF oBar ACTION oClient:SendData( "Hello from server!" ) TOOLTIP "Talk to client"

works fine!
by MarcoBoschi
Fri Apr 27, 2018 6:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: send a data to a client
Replies: 6
Views: 1219

Re: send a data to a client

I use sockcli.prg and sockserv.prg U found them on samples folder When a client is connetted to server I create an array with oClient:nSocket and oClient:ClientIP() I 'am trying to understand How I can acquire information and ...
by Silvio.Falconi
Thu Apr 26, 2018 7:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: send a data to a client
Replies: 6
Views: 1219

send a data to a client

I finally managed to connect sockserv to the sockcli and creating an array I saw that when a client connects, it puts the socket number and its ip as you can see in this picture https://s17.postimg.cc/dtnpr82nz/test2.jpg Now I wish ...
by Silvio.Falconi
Thu Apr 26, 2018 11:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: send a data to a client
Replies: 6
Views: 1219

Re: SockCli and SockServer sample using is not clear for me

I changed the IP (default seems to be (Gethostbyname) function Server()   oSocket = TSocket():New( 33334 )   oSocket:cIPAddr  = "192.168.1.101"   oSocket:bAccept = { | oSocket | oClient := TSocket():Accept( oSocket:nSocket ),;                   ...
by Marc Venken
Fri Sep 22, 2017 10:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828

Re: SockCli and SockServer sample using is not clear for me

Togetter they work OK. I see the log file created.

I have to read more about Ip's...

The server program has No parameter for the IP.
by Marc Venken
Fri Sep 22, 2017 9:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828

Re: SockCli and SockServer sample using is not clear for me

first of all try running both programs sockli.exe and sockli on the same pc
by MarcoBoschi
Fri Sep 22, 2017 8:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828

Re: SockCli and SockServer sample using is not clear for me

I think that I don't access the right IP from the serv. program ? Pbx = 192.168.1.101 and port = 33334 It it accessed by a 3 party proggie from My computer, where I try to get sockserv running. I can show some data from the Pbx. My Pc says in IpConfig : IP4 = 192.168.1.104 So my sockserv program is ...
by Marc Venken
Thu Sep 21, 2017 3:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828

Re: SockCli and SockServer sample using is not clear for me

OK. WIll try.

The Firewall will be the trouble I think. Will look into it.

For testing Serv - Client (Prg's)

It is the IP4 IP from the computer that I put the sockserv on that is the correct one. Does the port nummer matter in this case, or can I use the proposed 2000
by Marc Venken
Thu Sep 21, 2017 7:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828

Re: SockCli and SockServer sample using is not clear for me

You are right when you click it goes wrong
But If you click the first button on the left of sockserv.exe
And then from your phone you "send" data you sholud see something
Maybe you have to test sockserv it using sockli.prg first
disable firewall first of all
by MarcoBoschi
Thu Sep 21, 2017 7:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SockCli and SockServer sample using is not clear for me
Replies: 10
Views: 1828
Next

Return to advanced search