Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / sending a file using dark net

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 12th Nov 2011 19:43 Edited at: 12th Nov 2011 20:34
I am trying to send a file or folder using dark net.

1- I make memblock from the file but command "mn add memblock" caused the host to disconnect from the client.

2- I used banks instead of memblock but same result.

3- sending the file byte by byte was successfull but extremely slow.

anybody has an idea how to send a file using Dark net.

if no one, I will try to DBpro main net command : "send net message memblock"
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 12th Nov 2011 22:11
It might be slightly slower, but have you tried adding the memblock contents to a (or multiple, if that is neeeded) packet(s)?
Ie.



"Why do programmers get Halloween and Christmas mixed up?"
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 13th Nov 2011 00:06 Edited at: 14th Nov 2011 02:26
I did that already!

I think the problem in "mn add memblock" or "mn get memblock" maybe am not using it properly. it always says, end of packet reached with no data.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 28th Feb 2012 04:07
Sorry to bump this but any revelations since?

[Came across this while looking for the original Dark Net sticky thread but no luck... what was changed in 2.0.1 is the answer I am looking for]

Super Nova
21
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Earth
Posted: 28th Feb 2012 12:13 Edited at: 28th Feb 2012 12:19
I use an idea that Kistech came up with for a project of his that he was generous enough to share with the me. It involves using IanM's matrix plugins and his bank commands to read bytes from a file and sending those bytes to the receiving end.

This is pretty much the basics behind the server side (sender) of the code that I use to send files:




and the client side (receiving):



"What I have shown you is reality. What you remember, that is the illusion."
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 28th Feb 2012 12:17
so DN + IanM right?

hopefully will give this a go soon [flagged in email!!!]

cheers Super Nova

Super Nova
21
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Earth
Posted: 28th Feb 2012 12:22
Yep, its pretty straight forward actually, just send a set amount of bytes and add them to a bank, when done, use the make file from bank a you got a file, I can explain more if needed. It can send files very quickly too I owe thanks to Kistech and IanM for this code, it makes things very easy.

"What I have shown you is reality. What you remember, that is the illusion."
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 28th Feb 2012 12:29
Cheers again, and yeah will do... umm should I perform a simple check file size to determine the bytes or am I confused?

Super Nova
21
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Earth
Posted: 28th Feb 2012 12:32
Yes sorry, there is quite a bit of code I did post because my code is more complicated and I only need to show you the basic idea, here is how I get the file size (actually bank size)



Cheers

"What I have shown you is reality. What you remember, that is the illusion."
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 28th Feb 2012 12:35
I salute thee!

hope I can experiment with this in the coming weeks

Login to post a reply

Server time is: 2026-07-10 00:42:55
Your offset time is: 2026-07-10 00:42:55