mnSetUsedSize

This command changes how much of the packet is in use.

When sending, DarkNet will only send up to the used size. The used size should not be set to above the memory size.

Example: If the memory size is 100 and the used size is 60, mnSendTCP will send the first 60 bytes of the packet and ignore the other 40 bytes. 40 more bytes of data can be added to the packet (increasing the used size automatically) without changing the memory size.

Parameters

long long int Packet: The packet that the command should use.

unsigned int Size:The the new used size.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

C++

DBP

.Net




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