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.

Newcomers DBPro Corner / DarkNET Handshaking procedure

Author
Message
yaten
14
Years of Service
User Offline
Joined: 12th Aug 2010
Location:
Posted: 23rd Aug 2010 01:26
hi masters!

I'm trying to connect my game into a linux backend, in other words, darknet into a non-darknet connection. I don't want to use the
mnDisableTCPHandshake because I want still want to use all the UDP features of the darknet side so i'd like to study how darknet performs this 'handshaking' so that I could adjust on the backend side. All I know at the moment is that the packets are prefixed by an unsigned integer corresponding to the length of the packet. I'd like to know more details about the handshaking itself, i.e. what data is being sent, and what it is for. Perhaps someone could point me into the right page, documents that discuss in detail how darknet client and server is doing the handshaking?

Thanks in advance! ^_^

---
http://www.yaten.me
yaten
14
Years of Service
User Offline
Joined: 12th Aug 2010
Location:
Posted: 23rd Aug 2010 01:38
For starters, here is what I found at the moment, assuming the generic sample found at the DarkNET sample directory,

C:\Program Files\The Game Creators\Dark Basic Professional Online\Projects\DarkNet\Demos\Cube World

so I tried to run a server on windows and tried connecting to it using my own apps on linux and see what I'm receiving as a client that doesn't know anything about DarkNet:




according to the bytes i recvd from the server side that runs on darknet, the first 4 bytes, is indeed the unsigned integer which is the size of the succeeding packets,


the following data was indeed 29 bytes, so that is good, my problem is, what does the remaining bytes represent?
i.e.:


the next 13 bytes seems consistent, the next 16 changes each time I try to connect.

So far that's what I know, but i'd be glad if someone would point me to the documentation than try to reverse engineer the handshaking process.

The objective is simple, I'd like to run the server on a linux backend which doesn't know anything about darknet, then the clients would connect using a darknet enabled program. If I could marry a linux server with a windows client, i'll be very very happy ^__^

Thanks in advance ^_^

---
http://www.yaten.me
yaten
14
Years of Service
User Offline
Joined: 12th Aug 2010
Location:
Posted: 23rd Aug 2010 20:45 Edited at: 24th Aug 2010 00:31
TGC and the author himself helped me on this, the documentation can be found

http://www.darknetworking.net/GeneratedDocumentation/html/index.html

Thanks to Michael Pryor, great job for the DarkNET ^_^

---
http://www.yaten.me

Login to post a reply

Server time is: 2024-11-23 10:53:12
Your offset time is: 2024-11-23 10:53:12