prototype for TCPConnection and Factory