Handles network events as they occur.
It is called from ReadStreamClientCallBack method when one of the events requested in NETWORK_EVENTS occurs.