AccountChannelRequest.stream_tube


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.23.2" ) ]
public AccountChannelRequest.stream_tube (Account account, string service, int64 user_action_time)

Convenience function to create a new AccountChannelRequest object, which will yield a StreamTube channel.

After creating the request, you will also need to set the "target" of the channel by calling one of the following functions:

- set_target_contact - set_target_id

Parameters:

account

a Account

service

the service name that will be used over the tube. It should be a well-known TCP service name as defined by http://www.iana.org/assignments/port-numbers or http://www.dns-sd.org/ServiceTypes.html, for instance "rsync" or "daap".

user_action_time

the time of the user action that caused this request, or one of the special values USER_ACTION_TIME_NOT_USER_ACTION or TP_USER_ACTION_TIME_CURRENT_TIME (see user_action_time)

Returns:

a new AccountChannelRequest object