vlcp.protocol.protocol.Protocol.closed

Here are the examples of the python api vlcp.protocol.protocol.Protocol.closed taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: vlcp Source File: testConnection.py
Function: closed
    def closed(self, connection):
        for m in Protocol.closed(self, connection):
            yield m
        connection.responder.mainroutine.close()
        if False:
            yield

Example 2

Project: vlcp Source File: zookeeper.py
Function: closed
    def closed(self, connection):
        for m in connection.waitForSend(ZooKeeperConnectionStateEvent(ZooKeeperConnectionStateEvent.DOWN,
                                                                      connection,
                                                                      connection.connmark,
                                                                      self)):
            yield m
        for m in Protocol.closed(self, connection):
            yield m