| 1 |
namespace Xmpp.Xep.Jingle { |
| 2 |
|
| 3 |
public interface Transport : Object { |
| 4 |
public abstract string ns_uri { get; } |
| 5 |
public async abstract bool is_transport_available(XmppStream stream, uint8 components, Jid full_jid); |
| 6 |
public abstract TransportType type_ { get; } |
| 7 |
public abstract int priority { get; } |
| 8 |
public abstract TransportParameters create_transport_parameters(XmppStream stream, uint8 components, Jid local_full_jid, Jid peer_full_jid) throws Error; |
| 9 |
public abstract TransportParameters parse_transport_parameters(XmppStream stream, uint8 components, Jid local_full_jid, Jid peer_full_jid, StanzaNode transport) throws IqError; |
| 10 |
} |
| 11 |
|
| 12 |
public enum TransportType { |
| 13 |
DATAGRAM, |
| 14 |
STREAMING, |
| 15 |
} |
| 16 |
|
| 17 |
// Gets a null `stream` if connection setup was unsuccessful and another |
| 18 |
// transport method should be tried. |
| 19 |
public interface TransportParameters : Object { |
| 20 |
public abstract string ns_uri { get; } |
| 21 |
public abstract uint8 components { get; } |
| 22 |
|
| 23 |
public abstract void set_content(Content content); |
| 24 |
public abstract StanzaNode to_transport_stanza_node(string action_type); |
| 25 |
public abstract void handle_transport_accept(StanzaNode transport) throws IqError; |
| 26 |
public abstract void handle_transport_info(StanzaNode transport) throws IqError; |
| 27 |
public abstract void create_transport_connection(XmppStream stream, Content content); |
| 28 |
} |
| 29 |
} |