Module Expr Str ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias If CompareEq NameLoad Str body ImportFrom alias identifier ImportFrom alias identifier orelse ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num If Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad Str Str Call AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults BinOpDiv Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad Str Call AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Assign NameStore ListLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad Str Call AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad Str Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str decorator_list decorator_list
N/A N/A 
Tests for the internal implementation details of L{twisted.internet.udp}.
 __future__ division absolute_import N/A socket twisted.trial unittest twisted.internet.protocol DatagramProtocol twisted.internet udp twisted.python.runtime platformType N/A N/A platformType win32 N/A errno WSAEWOULDBLOCK EWOULDBLOCK errno WSAECONNREFUSED ECONNREFUSED N/A errno EWOULDBLOCK errno ECONNREFUSED StringUDPSocket N/A object N/A N/A 
    A fake UDP socket object, which returns a fixed sequence of strings and/or
    socket errors.  Useful for testing.

    @ivar retvals: A C{list} containing either strings or C{socket.error}s.

    @ivar connectedAddr: The address the socket is connected to.
     __init__ N/A N/A self retvals N/A N/A N/A N/A self retvals retvals N/A N/A self connectedAddr None N/A connect N/A N/A self addr N/A N/A N/A N/A self connectedAddr addr N/A recvfrom N/A N/A self size N/A N/A N/A 
        Return (or raise) the next value from C{self.retvals}.
         N/A ret N/A N/A N/A self retvals pop 0 N/A N/A isinstance ret N/A socket error N/A N/A ret N/A N/A ret None N/A N/A KeepReads N/A DatagramProtocol N/A N/A 
    Accumulate reads in a list.
     __init__ N/A N/A self N/A N/A N/A N/A self reads N/A N/A datagramReceived N/A N/A self data addr N/A N/A N/A N/A N/A N/A self reads append data N/A N/A ErrorsTestCase N/A N/A unittest SynchronousTestCase N/A N/A 
    Error handling tests for C{udp.Port}.
     test_socketReadNormal N/A N/A self N/A N/A N/A 
        Socket reads with some good data followed by a socket error which can
        be ignored causes reading to stop, and no log messages to be logged.
         N/A N/A N/A N/A udp _sockErrReadIgnore append -7000 N/A N/A N/A self addCleanup N/A N/A udp _sockErrReadIgnore remove -7000 N/A protocol N/A KeepReads N/A port N/A N/A udp Port None protocol N/A N/A port socket N/A StringUDPSocket N/A result 123 N/A N/A socket error -7000 456 N/A N/A socket error -7000 N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A result 123 N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A result 123 456 N/A test_readImmediateError N/A N/A self N/A N/A N/A 
        If the socket is unconnected, socket reads with an immediate
        connection refusal are ignored, and reading stops. The protocol's
        C{connectionRefused} method is not called.
         N/A N/A N/A N/A udp _sockErrReadRefuse append -6000 N/A N/A N/A self addCleanup N/A N/A udp _sockErrReadRefuse remove -6000 N/A protocol N/A KeepReads N/A N/A protocol connectionRefused N/A N/A N/A N/A N/A 1 0 N/A port N/A N/A udp Port None protocol N/A N/A port socket N/A StringUDPSocket N/A a N/A N/A socket error -6000 b N/A N/A socket error EWOULDBLOCK N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A a N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A a b N/A test_connectedReadImmediateError N/A N/A self N/A N/A N/A 
        If the socket connected, socket reads with an immediate
        connection refusal are ignored, and reading stops. The protocol's
        C{connectionRefused} method is called.
         N/A N/A N/A N/A udp _sockErrReadRefuse append -6000 N/A N/A N/A self addCleanup N/A N/A udp _sockErrReadRefuse remove -6000 N/A protocol N/A KeepReads N/A refused N/A N/A N/A protocol connectionRefused N/A N/A N/A N/A N/A N/A refused append True N/A port N/A N/A udp Port None protocol N/A N/A port socket N/A StringUDPSocket N/A a N/A N/A socket error -6000 b N/A N/A socket error EWOULDBLOCK N/A N/A N/A port connect 127.0.0.1 9999 N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A a N/A N/A N/A self assertEqual refused N/A True N/A N/A N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A a b N/A N/A N/A self assertEqual refused N/A True N/A test_readUnknownError N/A N/A self N/A N/A N/A 
        Socket reads with an unknown socket error are raised.
         N/A protocol N/A KeepReads N/A port N/A N/A udp Port None protocol N/A N/A port socket N/A StringUDPSocket N/A good N/A N/A socket error -1337 N/A N/A N/A self assertRaises N/A socket error N/A port doRead N/A N/A N/A self assertEqual N/A protocol reads N/A good N/A N/A