TITLEDarkNet Logo
DarkNet
Home
Purchase
Contact
In Action
 
General
Performance
Ease of use
Asynchronous
Error System
Documentation
Demo Code
 
Protocol
Instances
Packets
Encryption
Compatibility
Disconnecting
Demo - Cube World
 
NAT Traversal
 
Input
Output
 
Firewall

 

 

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.

ScreenshotScreenshot of DarkNet application. The application requests and displays HTML from www.thegamecreators.com.

Executable

Download

Code

C++

C#

VB.NET

DarkBASIC Pro

© Copyright Michael Pryor