Infinityd.ServerPool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The directory to which to register incoming connections to |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Infinityd.ServerPool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infinityd.ServerPoolis an opaque data type. You should only access it via the public API functions.- classmethod new(directory)¶
- Parameters:
directory (
Infinityd.Directory) – AInfinityd.Directoryto which to add incoming connections.- Returns:
A new
Infinityd.ServerPool.- Return type:
Creates a new
Infinityd.ServerPool.
- add_local_publisher(server, publisher)¶
- Parameters:
server (
Infinityd.XmppServer) – AInfinityd.XmppServeradded to self.publisher (
Infinity.LocalPublisher) – AInfinity.LocalPublisher.
Publishes a service offered by server on the local network via publisher. This can safely be called when server is not yet open. The service will be published as soon as the server opens.
- add_server(server)¶
- Parameters:
server (
Infinityd.XmlServer) – AInfinityd.XmlServer.
Adds server to self. The server pool accepts incoming connections and gives them to its directory which processes incoming requests.
- foreach_server(func, *user_data)¶
- Parameters:
func (
Infinityd.ServerPoolForeachServerFunc) – The function to be called for each server.user_data (
objectorNone) – Additional data to pass to func.
Calls func for each server in pool registered with
Infinityd.ServerPool.add_server().
- remove_server(server)¶
- Parameters:
server (
Infinityd.XmlServer) – AInfinityd.XmlServerwhich was previously added to self.
Removed server from servor_pool. If server was published via some publishers then it will be unpublished automatically.
Property Details¶
- Infinityd.ServerPool.props.directory¶
- Name:
directory- Type:
- Default Value:
- Flags:
The directory to which to register incoming connections to