I tried SockClient.prg and sockserv.prg
but I not understood how send a txt file from a computer to another not on the same Lan
Is there a small functional example how to send and receive a text file from one computer to another and vice versa?
Search found 88 matches: sockserv
Searched query: sockserv
- Mon May 27, 2024 12:03 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Socket
- Replies: 1
- Views: 417
- Thu Jul 28, 2022 7:51 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: REFRESCAR BROWSE Y CONSULTA SQL AUTOMATICAMENTE
- Replies: 5
- Views: 806
Re: REFRESCAR BROWSE Y CONSULTA SQL AUTOMATICAMENTE
... 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 que hice para ...
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 que hice para ...
- Fri Jul 08, 2022 3:01 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Convert and print chinese idioms
- Replies: 3
- Views: 655
Convert and print chinese idioms
... 40; hSocket ) return nil
the message on the screen is correct ,but the printed result is wrong (other idioms ) .
I compared with sockserv.prg (from fwh \ samples folder)
the transmission and reception of the program in FW and a program that correctly prints and analyzes the strings ...
the message on the screen is correct ,but the printed result is wrong (other idioms ) .
I compared with sockserv.prg (from fwh \ samples folder)
the transmission and reception of the program in FW and a program that correctly prints and analyzes the strings ...
- Tue May 25, 2021 10:57 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: SOCKETS - Hay que reiniciar ordenador para volver a conectar
- Replies: 11
- Views: 1589
Re: SOCKETS - Hay que reiniciar ordenador para volver a conectar
... shutdown" LIB "ws2_32.dll" // "wsock32.dll" también vale
Como el servidor lo he desarrollado a partir del código que aparece en sockserv.prg que viene con FiveWin, observo que con cada bAccept que recibe el servidor el sistema crea un nuevo socket, sucediendo que cuando se "mata" el ...
Como el servidor lo he desarrollado a partir del código que aparece en sockserv.prg que viene con FiveWin, observo que con cada bAccept que recibe el servidor el sistema crea un nuevo socket, sucediendo que cuando se "mata" el ...
- Fri Oct 11, 2019 4:24 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: SOCKETS
- Replies: 10
- Views: 1988
Re: SOCKETS
Revisa los ejemplos sockserv.prg y sockcli.prg en FWH\samples
- Mon May 21, 2018 5:42 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: La magia de los Sockets
- Replies: 19
- Views: 6003
Re: La magia de los Sockets
... 41; h["lListen"] := .T.Return Nil//-------------------------------------------//static Function OnRead( oSocket ) Local aSockServ Local cToken Local aFirstName Local aSecondName Local aAliasName Local cName Local cSSNome Local cMsg Local cData := oSocket:GetData() do ...
- Fri May 18, 2018 10:18 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: La magia de los Sockets
- Replies: 19
- Views: 6003
Re: La magia de los Sockets
Estimado Albeiro,
Revisando el código de Oscar, parece que el servidor es un trabajo derivativo del ejemplo sockserv.prg de FWH
¿ Podrías publicar los cambios y mejoras realizadas ?
gracias
Revisando el código de Oscar, parece que el servidor es un trabajo derivativo del ejemplo sockserv.prg de FWH
¿ Podrías publicar los cambios y mejoras realizadas ?
gracias
- Mon Apr 30, 2018 8:56 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Another for Sockserv and sockcli
- Replies: 0
- Views: 464
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 must ...
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 must ...
- Sat Apr 28, 2018 7:41 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: send a data to a client
- Replies: 6
- Views: 1356
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 third Pc...Why ? because only the the server is ...
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 third Pc...Why ? because only the the server is ...
- Fri Apr 27, 2018 6:28 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: send a data to a client
- Replies: 6
- Views: 1356
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
works fine!
did you try sockcli.prg and sockserv.prg in two different computers?
In example in sockserv.prg
Code: Select all | Expand
DEFINE BUTTON OF oBar ACTION oClient:SendData( "Hello from server!" ) TOOLTIP "Talk to client"
works fine!
- Thu Apr 26, 2018 7:22 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: send a data to a client
- Replies: 6
- Views: 1356
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 use the commands of socket
If someone can help me ...
I must not create ...
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 use the commands of socket
If someone can help me ...
I must not create ...
- Thu Apr 26, 2018 11:23 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: send a data to a client
- Replies: 6
- Views: 1356
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 send a message or a file to client but to a ...
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 send a message or a file to client but to a ...
- 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: 2279
Re: SockCli and SockServer sample using is not clear for me
... 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 running on the IP xxx.104 ...
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 running on the IP xxx.104 ...
- 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: 2279
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
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
- 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: 2279
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
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