コード例 #1
0
ファイル: ssl_socket.py プロジェクト: Zacchy/nickcheng-python
 def _pre_open(self, sock=None):
     if sock is None:
         sock = socket.socket(self._domain, self._type)
     context = OpenSSL.Context(OpenSSL.SSLv23_METHOD)
     ssl_sock = OpenSSL.Connection(context, sock)
     ssl_sock.set_connect_state()
     GIOChannelClient._pre_open(self, ssl_sock)
コード例 #2
0
ファイル: sock.py プロジェクト: AmiZya/emesene
 def _pre_open(self, sock=None):
     if sock is None:
         sock = socket.socket(self._domain, self._type)
         try:
             sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
         except AttributeError:
             pass
     GIOChannelClient._pre_open(self, sock)
コード例 #3
0
ファイル: sock.py プロジェクト: fernandomt08/emesene
 def _pre_open(self, sock=None):
     if sock is None:
         sock = socket.socket(self._domain, self._type)
         try:
             sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
         except AttributeError:
             pass
     GIOChannelClient._pre_open(self, sock)
コード例 #4
0
 def _pre_open(self, sock=None):
     if sock is None:
         sock = socket.socket(self._domain, self._type)
         try:
             sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
         except AttributeError:
             pass
     context = OpenSSL.Context(OpenSSL.SSLv23_METHOD)
     ssl_sock = OpenSSL.Connection(context, sock)
     GIOChannelClient._pre_open(self, ssl_sock)
コード例 #5
0
ファイル: sock.py プロジェクト: Zacchy/nickcheng-python
 def _pre_open(self, sock=None):
     if sock is None:
         sock = socket.socket(self._domain, self._type)
     GIOChannelClient._pre_open(self, sock)