How to upload files with sendnetworkdata/receivnetworkdata?

Working on new editor enhancements?
MarcosPC
User
User
Posts: 17
Joined: Mon Mar 19, 2018 10:03 pm

How to upload files with sendnetworkdata/receivnetworkdata?

Post 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!
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: How to upload files with sendnetworkdata/receivnetworkda

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply