Updated connect(...) with API changes for TcpStream.