tcpsocket: add a connect() method that creates a TCP client socket.