refactor:

TCPConnection and UDPConnecion have same flag now: isListening for
keep/stop socket.