2019-08-16 17:54:38

Hi.
How big packets can i transfer using bgt networking, or isn't there even a limit? I was working on a server for a future project that required big file transfers from client to server and vice versa.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-08-16 18:53:24

Don't expect to be sending like 300 MB files, or anything like 7Z files. It could be used for like, say, 100 KB files. I don't think there are actually any limits, but you might get runtime errors for big files. Just mess with it. Remember you will probably have to open a file and send raw data to the server. This could result in a lot of lag if you are sending like 5 minute OGG sound files, or anything like that.
Hope this helps.

2019-08-16 19:18:10

the worced problem i have is that bgt is not even properly retreaving the file contents.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-08-16 23:16:25

simter wrote:

the worced problem i have is that bgt is not even properly retreaving the file contents.

What do you mean with not properly retrieving the file contents? I could be of some help there.
Now refering to your original question, there is no size limit, but be careful not to send some hidiously large file because bgt does not split a packet in manageable chunks, so some routers may drop the packet because of bandwidth concerns. Also, when you send such large files, make shure you use the send_reliably function to be shure it arrives at destination.
As a sidenote, can anyone teall me how can I logout of this account for when the need arrises?

2019-08-17 00:20:26

For an example when i try to read out a .exe file that is 800 kb in size the only kontent i get back is MZ which is sure not the full content of an executable.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-08-17 01:00:37

In that case, make sure you are reading the file in binary mode because after "MZ", there are some null bytes because you are reading the dos header of the executable, but bgt, like C and many others, thinks that it encountered end of string and stop reading. So happens with .wav or any other binary files when they are read in text mode.

2019-08-17 01:08:16

I did binary mode, i did like this.

f.open("test.exe","rb");

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-08-17 01:37:55

The alert function does the same things with the data as explained above.
You can test my theory by opening a new file in write binary mode, writing the conts of the first file, close the second file and try to run it. If it executes, my theory is valid and you should not be waried about data loss because of this.

2019-08-17 13:07:44 (edited by Simter 2019-08-17 13:36:47)

Thanks a lot, it worked. My last mistake which made it not work i caled a wrong file object.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber