Module Expr Str Import alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpPow Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpPow Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpPow Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr Call AttributeLoad NameLoad attr
N/A N/A 
Tests for implementations of L{IReactorSocket}.

Generally only tests for failure cases are found here.  Success cases for
this interface are tested elsewhere.  For example, the success case for
I{AF_INET} is in L{twisted.internet.test.test_tcp}, since that case should
behave exactly the same as L{IReactorTCP.listenTCP}.
 N/A errno socket zope.interface verify twisted.python.log err twisted.internet.interfaces IReactorSocket twisted.internet.error UnsupportedAddressFamily twisted.internet.protocol DatagramProtocol ServerFactory twisted.internet.test.reactormixins ReactorBuilder needsRunningReactor IReactorSocketVerificationTestsBuilder N/A ReactorBuilder N/A N/A 
    Builder for testing L{IReactorSocket} implementations for required
    methods and method signatures.

    L{ReactorBuilder} already runs L{IReactorSocket.providedBy} to
    ensure that these tests will only be run on reactor classes that
    claim to implement L{IReactorSocket}.

    These tests ensure that reactors which claim to provide the
    L{IReactorSocket} interface actually have all the required methods
    and that those methods have the expected number of arguments.

    These tests will be skipped for reactors which do not claim to
    provide L{IReactorSocket}.
     N/A requiredInterfaces N/A IReactorSocket test_provider N/A N/A self N/A N/A N/A 
        The reactor instance returned by C{buildReactor} provides
        L{IReactorSocket}.
         N/A reactor N/A N/A self buildReactor N/A N/A N/A self assertTrue N/A N/A verify verifyObject IReactorSocket reactor N/A N/A AdoptStreamPortErrorsTestsBuilder N/A ReactorBuilder N/A N/A 
    Builder for testing L{IReactorSocket.adoptStreamPort} implementations.

    Generally only tests for failure cases are found here.  Success cases for
    this interface are tested elsewhere.  For example, the success case for
    I{AF_INET} is in L{twisted.internet.test.test_tcp}, since that case should
    behave exactly the same as L{IReactorTCP.listenTCP}.
     N/A requiredInterfaces N/A IReactorSocket test_invalidDescriptor N/A N/A self N/A N/A N/A 
        An implementation of L{IReactorSocket.adoptStreamPort} raises
        L{socket.error} if passed an integer which is not associated with a
        socket.
         N/A reactor N/A N/A self buildReactor N/A probe N/A N/A socket socket N/A fileno N/A N/A probe fileno N/A N/A N/A probe close N/A exc N/A N/A self assertRaises N/A socket error N/A reactor adoptStreamPort fileno N/A socket AF_INET N/A ServerFactory N/A N/A N/A self assertEqual N/A N/A exc args N/A 0 N/A errno EBADF N/A test_invalidAddressFamily N/A N/A self N/A N/A N/A 
        An implementation of L{IReactorSocket.adoptStreamPort} raises
        L{UnsupportedAddressFamily} if passed an address family it does not
        support.
         N/A reactor N/A N/A self buildReactor N/A port N/A N/A socket socket N/A N/A N/A port listen 1 N/A N/A N/A self addCleanup N/A port close N/A arbitrary N/A N/A 2 16 7 N/A N/A N/A self assertRaises UnsupportedAddressFamily N/A reactor adoptStreamPort N/A N/A port fileno arbitrary N/A ServerFactory N/A test_stopOnlyCloses N/A N/A self N/A N/A N/A 
        When the L{IListeningPort} returned by
        L{IReactorSocket.adoptStreamPort} is stopped using
        C{stopListening}, the underlying socket is closed but not
        shutdown.  This allows another process which still has a
        reference to it to continue accepting connections over it.
         N/A reactor N/A N/A self buildReactor N/A portSocket N/A N/A socket socket N/A N/A N/A self addCleanup N/A portSocket close N/A N/A N/A portSocket listen 1 N/A N/A N/A portSocket setblocking False N/A port N/A N/A reactor adoptStreamPort N/A N/A portSocket fileno N/A portSocket family N/A ServerFactory N/A d N/A N/A port stopListening stopped N/A N/A ignored N/A N/A N/A exc N/A N/A self assertRaises N/A socket error N/A portSocket accept N/A N/A N/A self assertEqual N/A N/A exc args N/A 0 N/A errno EAGAIN N/A N/A N/A N/A d addCallback stopped N/A N/A N/A d addErrback err Failed to accept on original port. N/A N/A needsRunningReactor reactor N/A N/A N/A N/A N/A N/A d addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A reactor run N/A N/A AdoptStreamConnectionErrorsTestsBuilder N/A ReactorBuilder N/A N/A 
    Builder for testing L{IReactorSocket.adoptStreamConnection}
    implementations.

    Generally only tests for failure cases are found here.  Success cases for
    this interface are tested elsewhere.  For example, the success case for
    I{AF_INET} is in L{twisted.internet.test.test_tcp}, since that case should
    behave exactly the same as L{IReactorTCP.listenTCP}.
     N/A requiredInterfaces N/A IReactorSocket test_invalidAddressFamily N/A N/A self N/A N/A N/A 
        An implementation of L{IReactorSocket.adoptStreamConnection} raises
        L{UnsupportedAddressFamily} if passed an address family it does not
        support.
         N/A reactor N/A N/A self buildReactor N/A connection N/A N/A socket socket N/A N/A N/A self addCleanup N/A connection close N/A arbitrary N/A N/A 2 16 7 N/A N/A N/A self assertRaises UnsupportedAddressFamily N/A reactor adoptStreamConnection N/A N/A connection fileno arbitrary N/A ServerFactory N/A N/A AdoptDatagramPortErrorsTestsBuilder N/A ReactorBuilder N/A N/A 
    Builder for testing L{IReactorSocket.adoptDatagramPort} implementations.
     N/A requiredInterfaces N/A IReactorSocket test_invalidDescriptor N/A N/A self N/A N/A N/A 
        An implementation of L{IReactorSocket.adoptDatagramPort} raises
        L{socket.error} if passed an integer which is not associated with a
        socket.
         N/A reactor N/A N/A self buildReactor N/A probe N/A N/A socket socket N/A fileno N/A N/A probe fileno N/A N/A N/A probe close N/A exc N/A N/A self assertRaises N/A socket error N/A reactor adoptDatagramPort fileno N/A socket AF_INET N/A DatagramProtocol N/A N/A N/A self assertEqual N/A N/A exc args N/A 0 N/A errno EBADF N/A test_invalidAddressFamily N/A N/A self N/A N/A N/A 
        An implementation of L{IReactorSocket.adoptDatagramPort} raises
        L{UnsupportedAddressFamily} if passed an address family it does not
        support.
         N/A reactor N/A N/A self buildReactor N/A port N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_DGRAM N/A N/A N/A self addCleanup N/A port close N/A arbitrary N/A N/A 2 16 7 N/A N/A N/A self assertRaises UnsupportedAddressFamily N/A reactor adoptDatagramPort N/A N/A port fileno arbitrary N/A DatagramProtocol N/A test_stopOnlyCloses N/A N/A self N/A N/A N/A 
        When the L{IListeningPort} returned by
        L{IReactorSocket.adoptDatagramPort} is stopped using
        C{stopListening}, the underlying socket is closed but not
        shutdown.  This allows another process which still has a
        reference to it to continue reading and writing to it.
         N/A reactor N/A N/A self buildReactor N/A portSocket N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_DGRAM N/A N/A N/A self addCleanup N/A portSocket close N/A N/A N/A portSocket setblocking False N/A port N/A N/A reactor adoptDatagramPort N/A N/A portSocket fileno N/A portSocket family N/A DatagramProtocol N/A d N/A N/A port stopListening stopped N/A N/A ignored N/A N/A N/A exc N/A N/A self assertRaises N/A socket error N/A portSocket recvfrom 1 N/A N/A N/A self assertEqual N/A N/A exc args N/A 0 N/A errno EAGAIN N/A N/A N/A N/A d addCallback stopped N/A N/A N/A d addErrback err Failed to read on original port. N/A N/A needsRunningReactor reactor N/A N/A N/A N/A N/A N/A d addCallback N/A N/A N/A ignored N/A N/A N/A reactor stop N/A N/A N/A reactor run N/A N/A N/A N/A N/A N/A globals update N/A N/A IReactorSocketVerificationTestsBuilder makeTestCaseClasses N/A N/A N/A N/A globals update N/A N/A AdoptStreamPortErrorsTestsBuilder makeTestCaseClasses N/A N/A N/A N/A globals update N/A N/A AdoptStreamConnectionErrorsTestsBuilder makeTestCaseClasses N/A N/A N/A N/A globals update N/A N/A AdoptDatagramPortErrorsTestsBuilder makeTestCaseClasses