twisted.internet.unix.Server(_SendmsgMixin, tcp.Server) class documentationtwisted.internet.unix
View Source
(View In Hierarchy)
| Method | __init__ | Server(sock, protocol, client, server, sessionno) |
| Method | getHost | Returns an IPv4Address
or IPv6Address. |
| Method | getPeer | Returns an IPv4Address
or IPv6Address. |
| Class Method | _fromConnectedSocket | Create a new Server based on
an existing connected SOCK_STREAM socket. |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Inherited from _AbortingMixin (via Server, Connection):
| Method | abortConnection | Aborts the connection immediately, dropping any buffered data. |
| Instance Variable | _aborting | Set to True when abortConnection is called. (type: bool) |
Server(sock, protocol, client, server, sessionno)
Initialize it with a socket, a protocol, a descriptor for my peer (a tuple of host, port describing the other end of the connection), an instance of Port, and a session number.
Create a new Server based on
an existing connected SOCK_STREAM socket.
Arguments are the same as to Server.__init__,
except where noted.
| Parameters | fileDescriptor | An integer file descriptor associated with a connected socket. The socket must be in non-blocking mode. Any additional attributes desired, such as FD_CLOEXEC, must also be set already. |
| Returns | A new instance of cls wrapping the socket given by
fileDescriptor. | |