Added constants for return values of receiveMessage.