mnAddStringC

This command adds a C string to the specified packet.

The data will be added starting at the cursor position and the cursor will be moved forward by the size of the data added.

Parameters

long long int Packet: This is the packet that the command should use.

char*: This is the string to add.

unsigned int Length: Length of string in bytes. Set this to 0 if the string is null terminated.

bool Prefix: Specifies whether or not to include a prefix of 4 bytes used to indicate the string's length. Set this to false if you have a means of calculating the string's length at the other end.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

C++




This page is in the following sections:
(2) Packets
(1) Miscellaneous
(0) DarkNet Help