This is used to receive a packet via
UDP. The new UDP packet will be copied into the specified packet.
If the memory size of the specified packet
is too small then it will be increased.
Note that when using mnRecvUDP in server
state under UDP mode UM_CATCH_ALL redundant connection packets may be
received from newly connected clients. These packets have a prefix of
an unsigned integer of 0 and should be ignored.
This command is used differently depending on UDP mode, see “Unreliable (UDP)” for more information on UDP modes.
int Instance: This is the instance that the command should
use.
int ClientID: In server state this is the client ID of the
client to receive from.
In client state UDP modes UM_PER_CLIENT
and UM_PER_CLIENT_PER_OPERATION, this is the client ID of the client
to receive a packet about.
In client state UDP modes UM_CATCH_ALL
and UM_CATCH_ALL_NO this parameter should be ignored and can be set
to anything.
int OperationID: This is the operation ID to receive from. This
is only used in UDP mode UM_PER_CLIENT_PER_OPERATION. In other UDP modes
this parameter can be set to anything.
0 if there were no new packets to receive.
1 if a new packet was received.
-1 if an error occurred.
DBP
C++
.Net