Is an OnReceive() event fired for each message received or is it fired once for a set of messages received? For example, let's say that ten messages are sent by the server and OnReceive() fires. Should I keep on doing multiple Receive()s? If so, how do I know when to stop reading (in Unix recv() blocks)?
Or are there 10 OnReceive()s fired?