Infinity.LocalPublisher

g GObject.GInterface GObject.GInterface Infinity.LocalPublisher Infinity.LocalPublisher GObject.GInterface->Infinity.LocalPublisher

Implementations:

Infinity.DiscoveryAvahi

Methods

publish (type, name, port)

unpublish (item)

Virtual Methods

do_publish (type, name, port)

do_unpublish (item)

Properties

None

Signals

None

Fields

None

Class Details

class Infinity.LocalPublisher
Bases:

GObject.GInterface

Structure:

Infinity.LocalPublisherInterface

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

publish(type, name, port)
Parameters:
  • type (str) – The service type to publish, such as _http._tcp.

  • name (str) – The name of the service.

  • port (int) – The port the service is listening on.

Returns:

A Infinity.LocalPublisherItem that can be used to unpublish the service again.

Return type:

Infinity.LocalPublisherItem

Publishes a service through self so that it can be discovered with an appropriate Infinity.Discovery.

unpublish(item)
Parameters:

item (Infinity.LocalPublisherItem) – A published item obtained from Infinity.LocalPublisher.publish().

Unpublishes item so that it can no longer be found in the network.

do_publish(type, name, port) virtual
Parameters:
  • type (str) – The service type to publish, such as _http._tcp.

  • name (str) – The name of the service.

  • port (int) – The port the service is listening on.

Returns:

A Infinity.LocalPublisherItem that can be used to unpublish the service again.

Return type:

Infinity.LocalPublisherItem

Publishes a service through publisher so that it can be discovered with an appropriate Infinity.Discovery.

do_unpublish(item) virtual
Parameters:

item (Infinity.LocalPublisherItem) – A published item obtained from Infinity.LocalPublisher.publish().

Unpublishes item so that it can no longer be found in the network.