Module Expr Str Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitOr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitAnd NameLoad UnaryOpInvert AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign NameStore NameStore Lambda arguments args NameParam defaults NameLoad orelse FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitOr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitAnd NameLoad UnaryOpInvert AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return orelse Return NameLoad If UnaryOpNot NameLoad body Return NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If CompareIn AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Num Return NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str
N/A N/A 
Utility functions for dealing with POSIX file descriptors.
 N/A os N/A errno N/A N/A N/A fcntl N/A N/A N/A ImportError N/A N/A fcntl None twisted.internet.main CONNECTION_LOST CONNECTION_DONE twisted.python.runtime platformType setNonBlocking N/A N/A fd N/A N/A N/A 
    Make a file descriptor non-blocking.
     N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFL N/A flags N/A flags N/A os O_NONBLOCK N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFL flags N/A setBlocking N/A N/A fd N/A N/A N/A 
    Make a file descriptor blocking.
     N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFL N/A flags N/A flags N/A N/A os O_NONBLOCK N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFL flags N/A N/A N/A fcntl None N/A N/A _setCloseOnExec _unsetCloseOnExec N/A N/A N/A fd N/A None N/A _setCloseOnExec N/A N/A fd N/A N/A N/A 
        Make a file descriptor close-on-exec.
         N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFD N/A flags N/A flags N/A fcntl FD_CLOEXEC N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFD flags N/A _unsetCloseOnExec N/A N/A fd N/A N/A N/A 
        Make a file descriptor close-on-exec.
         N/A flags N/A N/A fcntl fcntl fd N/A fcntl F_GETFD N/A flags N/A flags N/A N/A fcntl FD_CLOEXEC N/A N/A N/A fcntl fcntl fd N/A fcntl F_SETFD flags N/A readFromFD N/A N/A fd callback N/A N/A N/A 
    Read from file descriptor, calling callback with resulting data.

    If successful, call 'callback' with a single argument: the
    resulting data.

    Returns same thing FileDescriptor.doRead would: CONNECTION_LOST,
    CONNECTION_DONE, or None.

    @type fd: C{int}
    @param fd: non-blocking file descriptor to be read from.
    @param callback: a callable which accepts a single argument. If
    data is read from the file descriptor it will be called with this
    data. Handling exceptions from calling the callback is up to the
    caller.

    Note that if the descriptor is still connected but no data is read,
    None will be returned but callback will not be called.

    @return: CONNECTION_LOST on error, CONNECTION_DONE when fd is
    closed, otherwise None.
     N/A N/A N/A output N/A N/A os read fd 8192 N/A N/A N/A N/A OSError IOError N/A ioe N/A N/A N/A N/A N/A ioe args N/A 0 N/A N/A errno EAGAIN N/A errno EINTR N/A N/A N/A N/A CONNECTION_LOST N/A N/A output N/A N/A CONNECTION_DONE N/A N/A callback output N/A writeToFD N/A N/A fd data N/A N/A N/A 
    Write data to file descriptor.

    Returns same thing FileDescriptor.writeSomeData would.

    @type fd: C{int}
    @param fd: non-blocking file descriptor to be written to.
    @type data: C{str} or C{buffer}
    @param data: bytes to write to fd.

    @return: number of bytes written, or CONNECTION_LOST.
     N/A N/A N/A N/A N/A os write fd data N/A N/A N/A N/A OSError IOError N/A io N/A N/A N/A N/A io errno N/A N/A errno EAGAIN N/A errno EINTR N/A N/A 0 N/A CONNECTION_LOST N/A N/A __all__ N/A setNonBlocking setBlocking readFromFD writeToFD