twisted.manhole.gladereactor.GladeReactor(sup) class documentationtwisted.manhole.gladereactor
View Source
(View In Hierarchy)
GTK+-2 event loop reactor with GUI.
| Method | listenTCP | Connects a given protocol factory to the given numeric TCP/IP port. |
| Method | connectTCP | Connect a TCP client. |
| Method | listenSSL | Connects a given protocol factory to the given numeric TCP/IP port. The connection is a SSL one, using contexts created by the context factory. |
| Method | connectSSL | Connect a client Protocol to a remote SSL socket. |
| Method | connectUNIX | Connect a client protocol to a UNIX socket. |
| Method | listenUNIX | Listen on a UNIX socket. |
| Method | on_disconnect_clicked | Undocumented |
| Method | on_viewlog_clicked | Undocumented |
| Method | on_inspect_clicked | Undocumented |
| Method | on_suspend_clicked | Undocumented |
| Method | toggle_suspend | Undocumented |
| Method | servers_selection_changed | Undocumented |
| Method | on_quit_clicked | Undocumented |
| Method | __init__ | Undocumented |
| Method | addReader | Add a FileDescriptor
for monitoring of data available to read. |
| Method | addWriter | Add a FileDescriptor
for monitoring ability to write data. |
| Method | removeReader | Stop monitoring the given FileDescriptor
for reading. |
| Method | removeWriter | Stop monitoring the given FileDescriptor
for writing. |
| Method | crash | Crash the reactor. |
| Method | run | Run the reactor. |
| Method | _goAway | Undocumented |
| Method | _maybeAddServer | Undocumented |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Inherited from _PollLikeMixin (via Gtk2Reactor, GlibReactorBase):
| Method | _doReadOrWrite | fd is available for read or write, do the work and raise errors if necessary. |
Connects a given protocol factory to the given numeric TCP/IP port.
| Parameters | port | a port number on which to listen |
| factory | a twisted.internet.protocol.ServerFactory
instance | |
| backlog | size of the listen queue | |
| interface | The local IPv4 or IPv6 address to which to bind; defaults to '', ie all IPv4 addresses. To bind to all IPv4 and IPv6 addresses, you must call this method twice. | |
| Returns | an object that provides IListeningPort. | |
| Raises | CannotListenError | as defined here twisted.internet.error.CannotListenError,
if it cannot listen on this port (e.g., it cannot bind to the required port
number) |
Connect a TCP client.
| Parameters | host | A hostname or an IPv4 or IPv6 address literal. (type: bytes) |
| port | a port number | |
| factory | a twisted.internet.protocol.ClientFactory
instance | |
| timeout | number of seconds to wait before assuming the connection has failed. | |
| bindAddress | a (host, port) tuple of local address to bind to, or None. | |
| Returns | An object which provides IConnector.
This connector will call various callbacks on the factory when a connection
is made, failed, or lost - see ClientFactory
docs for details. | |
Connects a given protocol factory to the given numeric TCP/IP port. The connection is a SSL one, using contexts created by the context factory.
| Parameters | port | a port number on which to listen |
| factory | a twisted.internet.protocol.ServerFactory
instance | |
| contextFactory | a twisted.internet.ssl.ContextFactory
instance | |
| backlog | size of the listen queue | |
| interface | the hostname to bind to, defaults to '' (all) |
Connect a client Protocol to a remote SSL socket.
| Parameters | host | a host name |
| port | a port number | |
| factory | a twisted.internet.protocol.ClientFactory
instance | |
| contextFactory | a twisted.internet.ssl.ClientContextFactory
object. | |
| timeout | number of seconds to wait before assuming the connection has failed. | |
| bindAddress | a (host, port) tuple of local address to bind to, or None. | |
| Returns | An object which provides IConnector. | |
Connect a client protocol to a UNIX socket.
| Parameters | address | a path to a unix socket on the filesystem. |
| factory | a twisted.internet.protocol.ClientFactory
instance | |
| timeout | number of seconds to wait before assuming the connection has failed. | |
| checkPID | if True, check for a pid file to verify that a server is listening. If
address is a Linux abstract namespace path, this must be
False. | |
| Returns | An object which provides IConnector. | |
Listen on a UNIX socket.
| Parameters | address | a path to a unix socket on the filesystem. |
| factory | a twisted.internet.protocol.Factory
instance. | |
| backlog | number of connections to allow in backlog. | |
| mode | The mode (not umask) to set on the unix socket. See platform
specific documentation for information about how this might affect
connection attempts. (type: int) | |
| wantPID | if True, create a pidfile for the socket. If address is a
Linux abstract namespace path, this must be False. | |
| Returns | An object which provides IListeningPort. | |
Add a FileDescriptor
for monitoring of data available to read.