-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathIAlternativeTransport.cs
More file actions
38 lines (34 loc) · 1001 Bytes
/
IAlternativeTransport.cs
File metadata and controls
38 lines (34 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using Waher.Runtime.Inventory;
namespace Waher.Networking.XMPP
{
/// <summary>
/// Base class for alternative transports.
/// </summary>
public interface IAlternativeTransport : ITextTransportLayer, IProcessingSupport<Uri>
{
/// <summary>
/// If the alternative binding mechanism handles heartbeats.
/// </summary>
bool HandlesHeartbeats
{
get;
}
/// <summary>
/// Instantiates a new alternative connections.
/// </summary>
/// <param name="URI">URI defining endpoint.</param>
/// <param name="Client">XMPP Client</param>
/// <param name="BindingInterface">Inteface to internal properties of the <see cref="XmppClient"/>.</param>
/// <returns>Instantiated binding.</returns>
IAlternativeTransport Instantiate(Uri URI, XmppClient Client, XmppBindingInterface BindingInterface);
/// <summary>
/// Creates a session.
/// </summary>
void CreateSession();
/// <summary>
/// Closes a session.
/// </summary>
void CloseSession();
}
}