![]() |
![]() |
![]() |
libempathy Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <libempathy/empathy-tp-tube.h> EmpathyTpTubeAddress; EmpathyTpTube; EmpathyTpTube * empathy_tp_tube_new (TpChannel *channel); EmpathyTpTube * empathy_tp_tube_new_stream_tube (EmpathyContact *contact, TpSocketAddressType type, const gchar *hostname, guint port, const gchar *service, GHashTable *parameters); void empathy_tp_tube_accept_stream_tube (EmpathyTpTube *tube, TpSocketAddressType type, EmpathyTpTubeAcceptStreamTubeCb *callback, gpointer user_data);
typedef struct { TpSocketAddressType type; union { struct socket_address_t { GArray *path; } socket; struct inet_address_t { gchar *hostname; guint port; } inet; } a; } EmpathyTpTubeAddress;
typedef struct _EmpathyTpTube EmpathyTpTube;
An object wrapping a Telepathy tube channel.
EmpathyTpTube * empathy_tp_tube_new (TpChannel *channel);
Creates a new EmpathyTpTube.
|
a TpChannel |
Returns : |
a new EmpathyTpTube |
EmpathyTpTube * empathy_tp_tube_new_stream_tube (EmpathyContact *contact, TpSocketAddressType type, const gchar *hostname, guint port, const gchar *service, GHashTable *parameters);
Creates and offers a new EmpathyTpTube of ChannelType StreamTube.
|
the EmpathyContact to which the tube is offered |
|
the type of the listening address of the local service. Either
TP_SOCKET_ADDRESS_TYPE_IPV4 or TP_SOCKET_ADDRESS_TYPE_IPV6 .
|
|
the address of the local service |
|
the port of the local service |
|
the service name of the tube |
|
the parameters of the tube |
Returns : |
a new EmpathyTpTube |
void empathy_tp_tube_accept_stream_tube (EmpathyTpTube *tube, TpSocketAddressType type, EmpathyTpTubeAcceptStreamTubeCb *callback, gpointer user_data);
Accepts tube
of ChannelType StreamTube and call callback
once it's done.
|
an EmpathyTpTube |
|
the type of address the connection manager should listen on |
|
called when the tube has been accepted |
|
arbitrary user-supplied data passed to the callback |
"channel"
property"channel" TpChannel* : Read / Write / Construct Only
The TpChannel wrapped by the tube object.
"state"
property"state" guint : Read
The state of the tube.
Allowed values: <= 4
Default value: 0
"destroy"
signalvoid user_function (EmpathyTpTube *self, gpointer user_data) : Run Last
Emitted when then tube has been invalidated.
|
the tube object |
|
user data set when the signal handler was connected. |