More tcp connection/listener implementation, no testing