Compatibility
DarkNet TCP is compatible with applications not written using DarkNet. The DarkNet TCP handshake can be disabled using mnDisableTCPHandshake and a second TCP mode can be enabled using mnSetTCPMode.
TCP Modes
By default TM_SIZE is enabled which uses a prefix of an unsigned integer to determine the size of packets. This is added to all packets that are sent, and is read from incoming data.
Other protocols such as HTTP use a different packet scheme which involves looking for a postfix which indicates the end of a packet. When TM_POSTFIX is enabled DarkNet uses this packet scheme and by default \r\n (C++ escape characters) indicates the end of a packet; the postfix can be changed using mnSetTCPPostfix.
Below is a demo showing a DarkNet client that retrieves a web page from www.thegamecreators.com and displays its content.
Screenshot
Executable
Download
Code
C++
C#
VB.NET
DarkBASIC Pro
|