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