mnFlushRecvTCP

This command removes all packets currently received and in the TCP packet queue.

This command can be used in server (mnStartServer) and client state (mnConnect).

When mnSetFunction has not been used, received TCP packets are put into a queue and mnRecvTCP can be used to get packets from this queue.

You can use mnGetTCPStoreAmount to determine how many packets are in the queue.

Parameters

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

int ClientID: This is the client ID of the client who’s packet queue you wish to empty. This can be ignored in client state and can be set to anything.

Returns (Integer)

0 if no error occurred

-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