Accept a stream tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="im.telepathy.v1.Channel.Interface.Tube1">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.

Parameters

Used to pass an 'in' argument: The type of address the connection manager should listen on. (TpSocketAddressType)

in_access_control

Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The type of access control the connection manager should apply to the socket.</p> <p>Note that if you plan to establish more than one connection through the tube, the Socket_Access_Control_Port access control can't be used as you can't connect more than once from the same port.</p> (TpSocketAccessControl)

in_access_control_param

Used to pass an 'in' argument: A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum.

callback

called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking

user_data

user-supplied data passed to the callback;
must be NULL if callback
is NULL

destroy

called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback
is NULL

weak_object

If not NULL, a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback
is NULL

Returns

a TpProxyPendingCall representing the call in
progress. It is borrowed from the object, and will become
invalid when the callback is called, the call is
cancelled or the TpProxy becomes invalid.

tp_cli_channel_type_stream_tube1_callback_for_accept ()

Signature of the callback called when a Accept method call
succeeds or fails.

Parameters

proxy

the proxy on which the call was made

out_address

Used to return an 'out' argument if error
is NULL: The address on which the connection manager will listen for connections to this tube. The client should not attempt to connect to the address until the tube is open.

Parameters

The handle of the participant who opened the new connection (TpContactHandle)

arg_Identifier

The identifier of the participant who opened the new connection

arg_Connection_Param

<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>A parameter which can be used by the listening process to identify the connection. Note that this parameter has a meaningful value only in the Socket_Access_Control_Port and Socket_Access_Control_Credentials cases. If a different Socket_Access_Control has been chosen when offering the tube, this parameter should be ignored.</p> <p>In the Socket_Access_Control_Port case, the variant contains a struct Socket_Address_IPv4 (or Socket_Address_IPv6) containing the address from which the CM is connected to the client application.</p> <p>In the Socket_Access_Control_Credentials case, the variant contains the byte (D-Bus signature 'y') that has been sent with the credentials.</p>

arg_Connection_ID

The unique ID associated with this connection. This ID will be used to identifiy the connection when reporting errors with <tp:member-ref>ConnectionClosed</tp:member-ref>. (TpStreamTubeConnectionID)

Parameters

<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The name of a D-Bus error describing the error that occurred.</p> <p>The following errors can be used:</p> <ul> <li><code>im.telepathy.v1.Error.Cancelled</code>: user closed the socket or the tube.</li> <li><code>im.telepathy.v1.Error.ConnectionLost</code>: the bytestream relaying connection's data has been broken.</li> <li><code>im.telepathy.v1.Error.ConnectionRefused</code>: the tube offer refused the connection.</li> </ul>

Accept a D-Bus tube that's in the &quot;local pending&quot; state. The connection manager will attempt to open the tube. The tube remains in the &quot;local pending&quot; state until the <tp:dbus-ref namespace="im.telepathy.v1.Channel.Interface.Tube1">TubeChannelStateChanged</tp:dbus-ref> signal is emitted.