def _connect(self): try: host = self.link[1].get('host') port = self.link[1].get('port') return s_socket.connect((host, port)) except s_common.sockerrs as e: raiseSockError(self.link, e)
def _connect(self): try: host = self.link[1].get('host') port = self.link[1].get('port') return s_socket.connect((host,port)) except s_compat.sockerrs as e: raiseSockError(self.link,e)
def _connect(self): host = self.link[1].get('host') port = self.link[1].get('port') sock = s_socket.connect((host,port)) return sock