class _IInputOutputSystem(Interface): (source)
Known implementations: twisted.pair.testing.MemoryIOSystem
An interface for performing some basic kinds of I/O (particularly that I/O which might be useful for twisted.pair.tuntap
-using code).
Attribute | O_RDWR |
|
Attribute | O_NONBLOCK |
|
Attribute | O_CLOEXEC |
|
Method | open |
|
Method | ioctl |
|
Method | read |
|
Method | write |
|
Method | close |
|
Method | sendUDP |
Send a datagram to a certain address. |
Method | receiveUDP |
Return a socket which can be used to receive datagrams sent to the given address. |
Return a socket which can be used to receive datagrams sent to the given address.
Parameters | fileno | A file descriptor representing a tunnel device which the datagram was either sent via or will be received via. (type: int ) |
host | The IPv4 address at which the datagram will be received. (type: bytes ) | |
port | The UDP port number at which the datagram will be received. (type: int ) | |
Returns | A socket.socket which can be used to receive the specified datagram. |