Revision d6688264 ncclient/transport/session.py
b/ncclient/transport/session.py | ||
---|---|---|
13 | 13 |
# limitations under the License. |
14 | 14 |
|
15 | 15 |
from threading import Event |
16 |
from Queue import Queue |
|
16 | 17 |
|
17 | 18 |
from ncclient.capabilities import Capabilities, CAPABILITIES |
18 | 19 |
from ncclient.glue import Subject |
... | ... | |
30 | 31 |
"Subclass constructor should call this" |
31 | 32 |
Subject.__init__(self) |
32 | 33 |
self.setName('session') |
34 |
self._q = Queue() |
|
33 | 35 |
self._client_capabilities = CAPABILITIES |
34 | 36 |
self._server_capabilities = None # yet |
35 | 37 |
self._id = None # session-id |
... | ... | |
71 | 73 |
"Subclass implements" |
72 | 74 |
raise NotImplementedError |
73 | 75 |
|
76 |
def send(self, message): |
|
77 |
"TODO: docstring" |
|
78 |
logger.debug('queueing %s' % message) |
|
79 |
self._q.put(message) |
|
80 |
|
|
74 | 81 |
### Properties |
75 | 82 |
|
76 | 83 |
@property |
Also available in: Unified diff