renamed tcpconnection to socketconnection