示例#1
0
文件: tcp.py 项目: thpatel/synapse
    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)
示例#2
0
文件: tcp.py 项目: jhsmith/synapse
    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)
示例#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