예제 #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
파일: tcp.py 프로젝트: imjonsnooow/synapse
 def _connect(self):
     host = self.link[1].get('host')
     port = self.link[1].get('port')
     sock = s_socket.connect((host,port))
     return sock