Infinityc.SessionProxy¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Infinity.CommunicationObject (3), Infinity.SessionProxy (1)
- Structs:
|
Virtual Methods¶
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The connection with which the session communicates with the server |
||
r |
The communication group of subscribed connections |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Infinityc.SessionProxy(**kwargs)¶
- Bases:
GObject.Object
,Infinity.CommunicationObject
,Infinity.SessionProxy
- Abstract:
No
- Structure:
Infinityc.SessionProxy
is an opaque data type. You should only access it via the public API functions.- get_connection()¶
- Returns:
A
Infinity.XmlConnection
, orNone
.- Return type:
Returns the connection that is used to transmit requests to the publisher of the session, or
None
if the session is not subscribed.
- get_subscription_group()¶
- Returns:
- Return type:
Returns the group with all subscribed connections to the session, or
None
if the session is not subscribed.
- set_connection(group, connection, seq_id)¶
- Parameters:
group (
Infinity.CommunicationJoinedGroup
) – AInfinity.CommunicationJoinedGroup
of subscribed connections. Ignored if connection isNone
.connection (
Infinity.XmlConnection
) – AInfinity.XmlConnection
.seq_id (
int
) – A sequence identifier for connection. Ignored if connection isNone
.
Sets the subscription connection for the given session. The subscription connection is the connection through which session requests are transmitted during subscription.
The subscription connection might be set even if the session is in SYNCHRONIZING state in which case the session is immediately subscribed after synchronization. Note that no attempt is made to tell the other end about the subscription.
seq_id should be a sequence identifier obtained from the server side. It must be the same number that is used on the corresponding #InfdSessionProxy on the remote side, see infd_session_proxy_subscribe_to(). Normally #InfdDirectory or
Infinityc.Browser
, respectively, take care of passing the correct sequence identifier.When the subscription connection is being closed or replaced (by a subsequent call to this function), all pending requests are dropped and all users are set to be unavailable, but the session will not be closed, so it may be reused by setting another subscription connection. However, the session might not be synchronized again, but it is fully okay to close the session by hand (using
Infinity.Session.close
) and create a new session that is synchronized.
- do_translate_error(domain, code) virtual¶
- Parameters:
- Return type:
Property Details¶
- Infinityc.SessionProxy.props.connection¶
- Name:
connection
- Type:
- Default Value:
- Flags:
The connection with which the session communicates with the server
- Infinityc.SessionProxy.props.subscription_group¶
- Name:
subscription-group
- Type:
- Default Value:
- Flags:
The communication group of subscribed connections