mnRecvTCP

This is used to receive a packet via TCP. The new TCP packet will be copied into the specified packet.

If the memory size of the specified packet is too small then it will be increased.

All data currently stored in the packet will be wiped.

Parameters

int Instance: This is the instance that the command should use.

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

int ClientID: This is the client ID of the client to receive from. This can be ignored in client state and can be set to anything.

Returns (Integer)

0 if there were no new packets to receive.

A number greater than 0 if a new packet was received. This number indicates the number of received packets currently in waiting.

-1 if an error occurred.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Networking Commands
(1) Networking
(0) DarkNet Help