More bug fixes and implement of TCP Incoming, Connected, Disconnected
and Idle Events.