Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def _connect(self):
     host = self.link[1].get('host')
     port = self.link[1].get('port')
     sock = s_socket.connect((host,port))
     return sock