Part of twisted.internet.base View Source View In Hierarchy
Known subclasses: twisted.internet.tcp.Port, twisted.internet.udp.Port, twisted.pair.tuntap.TuntapPort
Basic implementation of a ListeningPort.
Note: This does not actually implement IListeningPort.| Method | createInternetSocket | Undocumented |
| Method | doWrite | Raises a RuntimeError |
Inherited from FileDescriptor:
| Method | logPrefix | Returns the default log prefix |
| Method | __init__ | Undocumented |
| Method | connectionLost | The connection was lost. |
| Method | writeSomeData | Write as much as possible of the given data, immediately. |
| Method | doRead | Called when data is avaliable for reading. |
| Method | writeConnectionLost | Indicates write connection was lost. |
| Method | readConnectionLost | Indicates read connection was lost. |
| Method | write | Reliably write some data. |
| Method | writeSequence | Reliably write a sequence of data. |
| Method | loseConnection | Close the connection at the next available opportunity. |
| Method | loseWriteConnection | Undocumented |
| Method | stopReading | Stop waiting for read availability. |
| Method | stopWriting | Stop waiting for write availability. |
| Method | startReading | Start waiting for read availability. |
| Method | startWriting | Start waiting for write availability. |
| Method | stopConsuming | Stop consuming data. |
| Method | resumeProducing | Undocumented |
| Method | pauseProducing | Undocumented |
| Method | stopProducing | Stop producing data. |
| Method | fileno | File Descriptor number for select(). |
| Method | _postLoseConnection | Called after a loseConnection(), when all data has been written. |
| Method | _closeWriteConnection | Undocumented |
Inherited from _ConsumerMixin (via FileDescriptor):
| Method | registerProducer | Register to receive data from a producer. |
| Method | unregisterProducer | Stop consuming data from a producer, without disconnecting. |