예제 #1
0
파일: jsonrpc.py 프로젝트: hubo1016/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     connection.scheduler.ignore(JsonRPCRequestEvent.createMatcher(connection = connection))
     self._logger.info('JSON-RPC connection is closed on %r', connection)
     for m in connection.waitForSend(JsonRPCConnectionStateEvent(JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)):
         yield m
예제 #2
0
파일: openflow.py 프로젝트: hubo1016/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     connection.handler.close()
     self._logger.info('Openflow connection is closed on %r', connection)
     if connection.openflow_datapathid is not None:
         for m in connection.waitForSend(OpenflowConnectionStateEvent(connection.openflow_datapathid, connection.openflow_auxiliaryid, OpenflowConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)):
             yield m
예제 #3
0
파일: myprotocol.py 프로젝트: vtanrun/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(
             MyProtocolConnectionStateEvent(
                 MyProtocolConnectionStateEvent.DOWN, connection,
                 connection.connmark, self)):
         yield m
예제 #4
0
파일: redis.py 프로젝트: versee/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     self._logger.info('Redis connection is closed on %r', connection)
     for m in connection.waitForSend(
             RedisConnectionStateEvent(
                 RedisConnectionStateEvent.CONNECTION_DOWN, connection,
                 connection.connmark, self)):
         yield m
예제 #5
0
파일: raw.py 프로젝트: missuzhang/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.inputstream.write(b'', connection, True, True):
         yield m
     connection.terminate(connection._raw_writer)
     connection._raw_writer = None
     for m in connection.waitForSend(RawConnectionStateEvent(RawConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)):
         yield m
예제 #6
0
파일: raw.py 프로젝트: dq5070410/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.inputstream.write(b'', connection, True, True):
         yield m
     connection.terminate(connection._raw_writer)
     connection._raw_writer = None
     for m in connection.waitForSend(RawConnectionStateEvent(RawConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)):
         yield m
예제 #7
0
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(
             MyProtocolConnectionStateEvent(
                 MyProtocolConnectionStateEvent.DOWN,
                 connection,
                 connection.connmark,
                 self)):
         yield m
예제 #8
0
파일: jsonrpc.py 프로젝트: vtanrun/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     connection.scheduler.ignore(
         JsonRPCRequestEvent.createMatcher(connection=connection))
     self._logger.info('JSON-RPC connection is closed on %r', connection)
     for m in connection.waitForSend(
             JsonRPCConnectionStateEvent(
                 JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection,
                 connection.connmark, self)):
         yield m
예제 #9
0
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     connection.handler.close()
     self._logger.info('Openflow connection is closed on %r', connection)
     if connection.openflow_datapathid is not None:
         for m in connection.waitForSend(
                 OpenflowConnectionStateEvent(
                     connection.openflow_datapathid,
                     connection.openflow_auxiliaryid,
                     OpenflowConnectionStateEvent.CONNECTION_DOWN,
                     connection, connection.connmark, self)):
             yield m
예제 #10
0
파일: testio.py 프로젝트: vtanrun/vlcp
 def error(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(
             TestConnectionEvent(TestConnectionEvent.DOWN, connection)):
         yield m
예제 #11
0
파일: redis.py 프로젝트: hubo1016/vlcp
 def closed(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     self._logger.info('Redis connection is closed on %r', connection)
     for m in connection.waitForSend(RedisConnectionStateEvent(RedisConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)):
         yield m
예제 #12
0
파일: testio.py 프로젝트: dq5070410/vlcp
 def error(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(TestConnectionEvent(TestConnectionEvent.DOWN, connection)):
         yield m