connectors/PYRO/PSK_Adapter.py
changeset 2597 7e20fe7facd6
parent 2588 25f19b76c7b6
child 2598 46df689dbc3b
equal deleted inserted replaced
2596:779e8dbf1ee1 2597:7e20fe7facd6
    50     """
    50     """
    51     This is essentialy the same as in Pyro/protocol.py
    51     This is essentialy the same as in Pyro/protocol.py
    52     only raw_sock wrapping into sock through sslpsk.wrap_socket was added
    52     only raw_sock wrapping into sock through sslpsk.wrap_socket was added
    53     Pyro unfortunately doesn't allow cleaner customization
    53     Pyro unfortunately doesn't allow cleaner customization
    54     """
    54     """
       
    55 
    55 
    56 
    56     def bindToURI(self, URI):
    57     def bindToURI(self, URI):
    57         with self.lock:   # only 1 thread at a time can bind the URI
    58         with self.lock:   # only 1 thread at a time can bind the URI
    58             try:
    59             try:
    59                 self.URI = URI
    60                 self.URI = URI