mnFlushRecvUDP

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

This command can be used in server (mnStartServer) and client state (mnConnect) when UDP is enabled and in UDP mode UM_CATCH_ALL or UM_CATCH_ALL_NO.

When mnSetFunction has not been used and in UDP mode UM_CATCH_ALL or UM_CATCH_ALL_NO, received UDP packets are put into a queue and mnRecvUDP can be used to get packets from this queue.

You can use mnGetUDPStoreAmount 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