Infinityd.ServerPool

g GObject.Object GObject.Object Infinityd.ServerPool Infinityd.ServerPool GObject.Object->Infinityd.ServerPool

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (directory)

add_local_publisher (server, publisher)

add_server (server)

foreach_server (func, *user_data)

remove_server (server)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

directory

Infinityd.Directory

r/w/co

The directory to which to register incoming connections to

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Infinityd.ServerPool(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Infinityd.ServerPoolClass

Infinityd.ServerPool is an opaque data type. You should only access it via the public API functions.

classmethod new(directory)
Parameters:

directory (Infinityd.Directory) – A Infinityd.Directory to which to add incoming connections.

Returns:

A new Infinityd.ServerPool.

Return type:

Infinityd.ServerPool

Creates a new Infinityd.ServerPool.

add_local_publisher(server, publisher)
Parameters:

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) – A Infinityd.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:

Calls func for each server in pool registered with Infinityd.ServerPool.add_server().

remove_server(server)
Parameters:

server (Infinityd.XmlServer) – A Infinityd.XmlServer which 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:

Infinityd.Directory

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The directory to which to register incoming connections to