![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Implements a HTTP Binding mechanism based on BOSH. More...
Public Member Functions | |
HttpBinding () | |
Implements a HTTP Binding mechanism based on BOSH. More... | |
override Grade | Supports (Uri URI) |
How well the alternative transport handles the XMPP credentials provided. More... | |
override IAlternativeTransport | Instantiate (Uri URI, XmppClient Client, XmppBindingInterface BindingInterface) |
Instantiates a new alternative connections. More... | |
override void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
override async void | CreateSession () |
Creates a BOSH session. More... | |
override void | CloseSession () |
Closes a session. More... | |
override Task< bool > | SendAsync (string Packet) |
Sends a text packet. More... | |
override async Task< bool > | SendAsync (string Packet, EventHandlerAsync< DeliveryEventArgs > DeliveryCallback, object State) |
Sends a text packet. More... | |
override void | Continue () |
Continues a paused connection. More... | |
HttpBinding () | |
Implements a HTTP Binding mechanism based on BOSH. More... | |
override Grade | Supports (Uri URI) |
How well the alternative transport handles the XMPP credentials provided. More... | |
override IAlternativeTransport | Instantiate (Uri URI, XmppClient Client, XmppBindingInterface BindingInterface) |
Instantiates a new alternative connections. More... | |
override void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
override async void | CreateSession () |
Creates a BOSH session. More... | |
override void | CloseSession () |
Closes a session. More... | |
override Task< bool > | SendAsync (string Packet) |
Sends a text packet. More... | |
override async Task< bool > | SendAsync (string Packet, EventHandlerAsync< DeliveryEventArgs > DeliveryCallback, object State) |
Sends a text packet. More... | |
override void | Continue () |
Continues a paused connection. More... | |
Grade | Supports (T Object) |
If the interface understands objects such as Object . More... | |
Static Public Attributes | |
const string | HttpBindNamespace = "http://jabber.org/protocol/httpbind" |
http://jabber.org/protocol/httpbind More... | |
const string | BoshNamespace = "urn:xmpp:xbosh" |
urn:xmpp:xbosh More... | |
Properties | |
override bool | HandlesHeartbeats [get] |
If the alternative binding mechanism handles heartbeats. More... | |
bool | RestartLogic [get] |
Connection manager supports stream restart logic. More... | |
override bool | Paused [get] |
If reading has been paused. More... | |
Events | |
override TextEventHandler | OnSent |
Event raised when a packet has been sent. More... | |
override TextEventHandler | OnReceived |
Event received when text data has been received. More... | |
Implements a HTTP Binding mechanism based on BOSH.
XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH): https://xmpp.org/extensions/xep-0124.html
XEP-0206: XMPP Over BOSH: https://xmpp.org/extensions/xep-0206.html
Definition at line 30 of file HttpBinding.cs.
Waher.Networking.XMPP.BOSH.HttpBinding.HttpBinding | ( | ) |
Implements a HTTP Binding mechanism based on BOSH.
Definition at line 76 of file HttpBinding.cs.
Waher.Networking.XMPP.BOSH.HttpBinding.HttpBinding | ( | ) |
Implements a HTTP Binding mechanism based on BOSH.
Definition at line 76 of file HttpBinding.cs.
|
virtual |
Closes a session.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 452 of file HttpBinding.cs.
|
virtual |
Closes a session.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 452 of file HttpBinding.cs.
|
virtual |
Continues a paused connection.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 890 of file HttpBinding.cs.
|
virtual |
Continues a paused connection.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 890 of file HttpBinding.cs.
|
virtual |
Creates a BOSH session.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 210 of file HttpBinding.cs.
|
virtual |
Creates a BOSH session.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 210 of file HttpBinding.cs.
|
virtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 152 of file HttpBinding.cs.
|
virtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 152 of file HttpBinding.cs.
|
virtual |
Instantiates a new alternative connections.
URI | URI defining endpoint. |
Client | XMPP Client |
BindingInterface | Inteface to internal properties of the XmppClient. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 110 of file HttpBinding.cs.
|
virtual |
Instantiates a new alternative connections.
URI | URI defining endpoint. |
Client | XMPP Client |
BindingInterface | Inteface to internal properties of the XmppClient. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 110 of file HttpBinding.cs.
|
virtual |
Sends a text packet.
Packet | Text packet. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 492 of file HttpBinding.cs.
|
virtual |
Sends a text packet.
Packet | Text packet. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 492 of file HttpBinding.cs.
|
virtual |
Sends a text packet.
Packet | Text packet. |
DeliveryCallback | Optional method to call when packet has been delivered. |
State | State object to pass on to callback method. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 503 of file HttpBinding.cs.
|
virtual |
Sends a text packet.
Packet | Text packet. |
DeliveryCallback | Optional method to call when packet has been delivered. |
State | State object to pass on to callback method. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 503 of file HttpBinding.cs.
|
inherited |
If the interface understands objects such as Object .
Object | Object |
|
virtual |
How well the alternative transport handles the XMPP credentials provided.
URI | URI defining endpoint. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 90 of file HttpBinding.cs.
|
virtual |
How well the alternative transport handles the XMPP credentials provided.
URI | URI defining endpoint. |
Implements Waher.Networking.XMPP.AlternativeTransport.
Definition at line 90 of file HttpBinding.cs.
|
static |
urn:xmpp:xbosh
Definition at line 40 of file HttpBinding.cs.
|
static |
http://jabber.org/protocol/httpbind
Definition at line 35 of file HttpBinding.cs.
|
get |
If the alternative binding mechanism handles heartbeats.
Implements Waher.Networking.XMPP.IAlternativeTransport.
Definition at line 83 of file HttpBinding.cs.
|
get |
If reading has been paused.
Implements Waher.Networking.ITextTransportLayer.
Definition at line 885 of file HttpBinding.cs.
|
get |
Connection manager supports stream restart logic.
Definition at line 146 of file HttpBinding.cs.
override TextEventHandler Waher.Networking.XMPP.BOSH.HttpBinding.OnReceived |
Event received when text data has been received.
Definition at line 141 of file HttpBinding.cs.
override TextEventHandler Waher.Networking.XMPP.BOSH.HttpBinding.OnSent |
Event raised when a packet has been sent.
Definition at line 136 of file HttpBinding.cs.