This method of the DirectPlay2 Class retrieves the size of the message data associated with the next or specified message on the message queue.
public int receiveSize(int flags);
Returns the size of the message data.