Networking Events
This module implements commonly used Networking events used by socket components.
Bases: circuits.core.events.Event
connect Event
This Event is sent when a new client connection has arrived on a server. This event is also used for client’s to initiate a new connection to a remote host.
Note
This event is used for both Client and Server Components.
Parameters: |
|
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
disconnect Event
This Event is sent when a client connection has closed on a server. This event is also used for client’s to disconnect from a remote host.
Note
This event is used for both Client and Server Components.
Parameters: | args – Client: () Server: (sock) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
connected Event
This Event is sent when a client has successfully connected.
Note
This event is for Client Components.
Parameters: |
|
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
disconnected Event
This Event is sent when a client has disconnected
Note
This event is for Client Components.
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
read Event
This Event is sent when a client or server connection has read any data.
Note
This event is used for both Client and Server Components.
Parameters: | args – Client: (data) Server: (sock, data) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
error Event
This Event is sent when a client or server connection has an error.
Note
This event is used for both Client and Server Components.
Parameters: | args – Client: (error) Server: (sock, error) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
broadcast Event
This Event is used by the UDPServer/UDPClient sockets to send a message on the <broadcast> network.
Note
Parameters: | args – (data, port) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
write Event
This Event is used to notify a client, client connection or server that we have data to be written.
Note
Parameters: | args – Client: (data) Server: (sock, data) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
close Event
This Event is used to notify a client, client connection or server that we want to close.
Note
Parameters: | args – Client: () Server: (sock) |
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
ready Event
This Event is used to notify the rest of the system that the underlying Client or Server Component is ready to begin processing connections or incoming/outgoing data. (This is triggered as a direct result of having the capability to support multiple client/server components with a single poller component instance in a system).
Note
This event is used for both Client and Server Components.
Parameters: |
|
---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Bases: circuits.core.events.Event
closed Event
This Event is sent when a server has closed its listening socket.
Note
This event is for Server components.
An event is a message send to one or more channels. It is eventually dispatched to all components that have handlers for one of the channels and the event type.
All normal arguments and keyword arguments passed to the constructor of an event are passed on to the handler. When declaring a handler, its argument list must therefore match the arguments used for creating the event.
Every event has a name attribute that is used for matching the event with the handlers.
Variables: |
|
---|