Пример #1
0
 def get_channel_id(self, channel_id_type=None):
     """
     Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id`
     """
     return transport_channel_id(self.transport,
                                 is_server=True,
                                 channel_id_type=channel_id_type)
Пример #2
0
 def get_channel_id(self, channel_id_type=u'tls-unique'):
     """
     Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id`
     """
     return transport_channel_id(self.transport,
                                 is_server=False,
                                 channel_id_type=channel_id_type)
Пример #3
0
 def _create_transport_details(self):
     """
     Internal helper.
     Base class calls this to create a TransportDetails
     """
     # note that ITLSTransport exists too, which is "a TCP
     # transport that *can be upgraded* to TLS" .. if it *is*
     # upgraded to TLS, then the transport will implement
     # ISSLTransport at that point according to Twisted
     # documentation
     # the peer we are connected to
     is_secure = ISSLTransport.providedBy(self.transport)
     if is_secure:
         secure_channel_id = {
             'tls-unique': transport_channel_id(self.transport, False, 'tls-unique'),
         }
     else:
         secure_channel_id = {}
     return TransportDetails(peer=self.peer, is_secure=is_secure, secure_channel_id=secure_channel_id)
Пример #4
0
 def _create_transport_details(self):
     """
     Internal helper.
     Base class calls this to create a TransportDetails
     """
     # note that ITLSTransport exists too, which is "a TCP
     # transport that *can be upgraded* to TLS" .. if it *is*
     # upgraded to TLS, then the transport will implement
     # ISSLTransport at that point according to Twisted
     # documentation
     # the peer we are connected to
     is_secure = ISSLTransport.providedBy(self.transport)
     if is_secure:
         secure_channel_id = {
             u'tls-unique': transport_channel_id(self.transport, False, u'tls-unique'),
         }
     else:
         secure_channel_id = {}
     return TransportDetails(peer=self.peer, is_secure=is_secure, secure_channel_id=secure_channel_id)
Пример #5
0
 def get_channel_id(self, channel_id_type=u'tls-unique'):
     """
     Implements :func:`autobahn.wamp.interfaces.ITransport.get_channel_id`
     """
     return transport_channel_id(self.transport, is_server=False, channel_id_type=channel_id_type)
Пример #6
0
 def get_channel_id(self, channel_id_type='tls-unique'):
     return transport_channel_id(self.transport,
                                 is_server=True,
                                 channel_id_type=channel_id_type)
Пример #7
0
 def get_channel_id(self, channel_id_type=u'tls-unique'):
     return transport_channel_id(self.transport, is_server=True, channel_id_type=channel_id_type)