Infinity.DiscoveryAvahi¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Infinity.Discovery (7), Infinity.LocalPublisher (2)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The GnuTLS certificate credentials used for encrypting XMPP streams |
||
r/w/co |
The IO object used for watching sockets and timeouts |
||
r/w |
The keepalive settings for new connections |
||
r/w |
The SASL context used for authentication |
||
r/w |
The accepted SASL mechanisms for authentication |
||
r/w |
How to decide whether to use TLS |
||
r/w/co |
The XMPP manager to register resolved XMPP connections |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Infinity.DiscoveryAvahi(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infinity.DiscoveryAvahiis an opaque data type. You should only access it via the public API functions.- classmethod new(io, manager, creds, sasl_context, sasl_mechanisms)¶
- Parameters:
io (
Infinity.Io) – AInfinity.Ioobject used for watching sockets and timeouts.manager (
Infinity.XmppManager) – AInfinity.XmppManager.creds (
Infinity.CertificateCredentials) – The certificate credentials used for GnuTLS encryption.sasl_context (
Infinity.SaslContext) – A SASL context used for authentication.sasl_mechanisms (
str) – A whitespace-separated list of accepted SASL mechanisms, orNone.
- Returns:
A new
Infinity.DiscoveryAvahi.- Return type:
Created a new
Infinity.DiscoveryAvahiobject which can be used to publish and discovery Infinote services on the local network. When resolving aInfinity.DiscoveryInfo(which means obtaining aInfinity.XmlConnectionfor the discovered service) a newInfinity.XmppConnectionneeds to be created if there is not already one for the destination host in manager. Such connections are created with the creds and sasl_context parameters. These may beNonein which caseInfinity.XmppConnectionuses builtin credentials or a builtin context, respectively.If this
Infinity.DiscoveryAvahiis not used to discover services but only to publish any, then creds, sasl_context and sasl_mechanisms are ignored and can safely set to beNone.sasl_mechanisms specifies allowed mechanisms used for authentication with the server. It can be
None, in which case all available mechanisms are accepted.
- get_keepalive()¶
- Returns:
A
Infinity.Keepaliveset for new connections, owned by self.- Return type:
Returns the keepalive settings that will be used for new connections.
- get_security_policy()¶
- Returns:
The current security policy.
- Return type:
Returns the current security policy used for new
Infinity.XmppConnections.
- set_keepalive(keepalive)¶
- Parameters:
keepalive (
Infinity.Keepalive) – The new keepalive configuration.
Sets the keepalive settings for newly created connections. It does not affect already existing connections.
- set_security_policy(plcy)¶
- Parameters:
plcy (
Infinity.XmppConnectionSecurityPolicy) – The new security policy.
Sets the
Infinity.XmppConnectionSecurityPolicyfor newly createdInfinity.XmppConnections. It does not affect already existing connections.
Property Details¶
- Infinity.DiscoveryAvahi.props.credentials¶
- Name:
credentials- Type:
- Default Value:
- Flags:
The GnuTLS certificate credentials used for encrypting XMPP streams
- Infinity.DiscoveryAvahi.props.io¶
- Name:
io- Type:
- Default Value:
- Flags:
The IO object used for watching sockets and timeouts
- Infinity.DiscoveryAvahi.props.keepalive¶
- Name:
keepalive- Type:
- Default Value:
- Flags:
The keepalive settings for new connections
- Infinity.DiscoveryAvahi.props.sasl_context¶
- Name:
sasl-context- Type:
- Default Value:
- Flags:
The SASL context used for authentication
- Infinity.DiscoveryAvahi.props.sasl_mechanisms¶
-
The accepted SASL mechanisms for authentication
- Infinity.DiscoveryAvahi.props.security_policy¶
- Name:
security-policy- Type:
- Default Value:
- Flags:
How to decide whether to use TLS
- Infinity.DiscoveryAvahi.props.xmpp_manager¶
- Name:
xmpp-manager- Type:
- Default Value:
- Flags:
The XMPP manager to register resolved XMPP connections