Example #1
0
 def __init__(self, sandesh_instance, server, event_handler,
              sandesh_msg_handler):
     self._sandesh_instance = sandesh_instance
     self._logger = sandesh_instance._logger
     self._event_handler = event_handler
     self._reader = SandeshReader(self, sandesh_msg_handler)
     self._writer = SandeshWriter(self)
     self._send_queue = WorkQueue(self._send_sandesh,
                                  self._is_ready_to_send_sandesh)
     TcpSession.__init__(self, server)
Example #2
0
 def connect(self):
     TcpSession.connect(self, timeout=5)