Page 1 of 1

How to upload files with sendnetworkdata/receivnetworkdata?

Posted: Fri Jul 06, 2018 3:12 pm
by MarcosPC
If this is the way, is there an example as simple as: "NetworkClient.pb / NetworkServer.pb", found in the purebasic help?
If I'm wrong, what would be the command?
I took a look at some topics here, including the transfer limit. But it seems to be something else.

Gracias!

traduzido por google tradutor.

como transferir arquivos pela rede com sendnetworkdata/receivnetworkdata
Se é que este é o jeito, existe um exemplo tão simples quanto: "NetworkClient.pb/NetworkServer.pb", que se encontram na ajuda do purebasic?
Se eu estou errado, qual seria o comando?
Dei uma olhada em alguns tópicos aqui, inclusive sobre limite de tqamanho para transferência. Mas parece se tratar de outra coisa.

Gracias!

Re: How to upload files with sendnetworkdata/receivnetworkda

Posted: Sun Jul 08, 2018 11:14 am
by mk-soft
There's something more to consider.
In principle, you have to add your own protocol to the TCP protocol.
The block size is limited with TCP and you must manage yourself that the data arrives over 64kB completely in the correct order.

OSI model:
https://simple.wikipedia.org/wiki/OSI_model
TCP model:
https://en.wikipedia.org/wiki/Transmiss ... l_Protocol
https://simple.wikipedia.org/wiki/Trans ... l_Protocol

You can create a own application-layer...

Examples (very complex):
Link: viewtopic.php?f=12&t=66075