Mount Fuji Engine  0.8b
int MFSockets_RecvFrom ( MFSocket  socket,
char *  pBuffer,
int  bufferSize,
uint32  flags,
MFSocketAddress pSenderAddress 
)

Receives a datagram and stores the source address.

Parameters
socketDescriptor identifying a bound socket.
pBufferBuffer for the incoming data.
bufferSizeLength of pBuffer, in bytes.
flagsFlag specifying the way in which the call is made.
pSenderAddressOptional pointer to a buffer in a MFSocketAddress structure that will hold the source address upon return.
Returns
The number of bytes received. If the connection has been gracefully closed, the return value is zero.