PDA

View Full Version : transfer file via wi fi



montanaro
15th February 2019, 15:10
Hi

I m very very very beginner.

I have to transfer file via wi-fi.

My two pc have linux os.

For example,
wi fi network is "RETE", password is "PAROLA",
sender has IP 172.168.40.50 and receiver has 172.168.40.51
The name of file is "test.txt"

I m using this code:

https://www.qtcentre.org/threads/48209-File-transfer-through-sockets?p=217088#post217088
(i change name of file into define)


but it doesn work :(

ChrisW67
16th February 2019, 03:14
I'm using this code:

https://www.qtcentre.org/threads/48209-File-transfer-through-sockets?p=217088#post217088
(i change name of file into define)

but it doesn work :(

What about it doesn't work?
BTW: That is not a good example of the simplest way to achieve this. There is no need for QThread to achieve a file transfer.

montanaro
17th February 2019, 16:15
What about it doesn't work?
BTW: That is not a good example of the simplest way to achieve this. There is no need for QThread to achieve a file transfer.

I dont understard where/how i can choose file, path, port in client and server
I m using "FILENAME" for name and path. But it doesnt work. My client doesnt receive :(