equal
deleted
inserted
replaced
44 import sslpsk |
44 import sslpsk |
45 except ImportError as e: |
45 except ImportError as e: |
46 print(str(e)) |
46 print(str(e)) |
47 sslpsk = None |
47 sslpsk = None |
48 |
48 |
|
49 |
49 class PYROPSKAdapter(PYROAdapter): |
50 class PYROPSKAdapter(PYROAdapter): |
50 """ |
51 """ |
51 This is essentialy the same as in Pyro/protocol.py |
52 This is essentialy the same as in Pyro/protocol.py |
52 only raw_sock wrapping into sock through sslpsk.wrap_socket was added |
53 only raw_sock wrapping into sock through sslpsk.wrap_socket was added |
53 Pyro unfortunately doesn't allow cleaner customization |
54 Pyro unfortunately doesn't allow cleaner customization |
54 """ |
55 """ |
55 |
|
56 |
56 |
57 def bindToURI(self, URI): |
57 def bindToURI(self, URI): |
58 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 |
59 try: |
59 try: |
60 self.URI = URI |
60 self.URI = URI |