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.

Dark GDK / DarkNet: limits on characters sent thru strings

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 4th Oct 2010 20:45
Are there any characters that cannot be sent thru a string?

for example the first characters ( about 31) on the ascii chart

Null
Start of Heading
Start of Text
Line feed
Escape


Im trying to find the source of the error when i use darknet to send my information after i compress it.
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 4th Oct 2010 22:57
You probably wouldn't want to use strings fro that anyway.

I would use a memblock to transfer the data, then do whatever you need to with it from there.

Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 5th Oct 2010 03:13
You can send anything, the packet is never actually read by DarkNet.

The exception is TCP_POSTFIX. If you use the postfix packet within your packet then this will be seen as a standard postfix indicating the end of a packet.

Also if you want to debug compression you don't need to transfer any data, you can just add the data and then set the cursor to 0 and read.

KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 5th Oct 2010 04:43 Edited at: 5th Oct 2010 04:48
..or that.

@Parry,
What sort of compression are you using?

Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 5th Oct 2010 15:51
Thanks for the information, it should help me find the problem quicker.

Quote: "
@Parry,
What sort of compression are you using?
"

Its something I wrote myself. I designed my comunications between my server and client to use only a small amount of characters, mostly numbers, so compressing it is easy enough since there are 256 total characters possible.

Login to post a reply

Server time is: 2024-06-30 11:15:50
Your offset time is: 2024-06-30 11:15:50