class documentation

Tests for platform resources properly being cleaned up.

Method connectClient Establish a connection to the given address using the given ClientCreator instance.
Method createServer Bind a server port to which connections will be made. The server should use the given protocol factory.
Method getHandleErrorCodeMatcher Return a hamcrest.core.matcher.Matcher that matches the errno expected to result from writing to a closed platform socket handle.
Method getHandleExceptionType Return the exception class which will be raised when an operation is attempted on a closed platform handle.
Method test_properlyCloseFiles Test that lost connections properly have their underlying socket resources cleaned up.
def connectClient(self, address, portNumber, clientCreator): (source)

Establish a connection to the given address using the given ClientCreator instance.

Returns
A Deferred which will fire with the connected protocol instance.
def createServer(self, address, portNumber, factory): (source)

Bind a server port to which connections will be made. The server should use the given protocol factory.

Returns
The IListeningPort for the server created.
def getHandleErrorCodeMatcher(self): (source)

Return a hamcrest.core.matcher.Matcher that matches the errno expected to result from writing to a closed platform socket handle.

def getHandleExceptionType(self): (source)

Return the exception class which will be raised when an operation is attempted on a closed platform handle.

def test_properlyCloseFiles(self): (source)

Test that lost connections properly have their underlying socket resources cleaned up.