C# Class TSVCEO.CloudPrint.Proxy.XMPP

Inheritance: IDisposable
Exibir arquivo Open project: klightspeed/CloudPrintProxy Class Usage Examples

Protected Properties

Property Type Description
NamespaceAuth System.Xml.Linq.XNamespace
NamespaceBind System.Xml.Linq.XNamespace
NamespaceClient System.Xml.Linq.XNamespace
NamespacePush System.Xml.Linq.XNamespace
NamespaceSASL System.Xml.Linq.XNamespace
NamespaceSession System.Xml.Linq.XNamespace
NamespaceStartTLS System.Xml.Linq.XNamespace
NamespaceStream System.Xml.Linq.XNamespace

Public Methods

Method Description
Dispose ( ) : void
Start ( XMPP>.Action callback ) : void
Stop ( bool _throw ) : void
Subscribe ( string channel, XMPP>.Action callback ) : void
XMPP ( string jid, string authCookie, string resourceName, string authMechanism = "PLAIN", string proxyHost = null, int proxyPort, string host = null, int port ) : System

Protected Methods

Method Description
BeginBind ( ) : void
BeginSession ( ) : void
Connect ( string Host, int Port, string ProxyHost = null, int ProxyPort ) : Stream
Dispose ( bool disposing ) : void
EnqueueInfoQuery ( string type, string from, string to, CancellationToken>.Action callback ) : void
EnqueueInfoQuery ( string type, string from, string to, CancellationToken>.Action callback, IEnumerable content ) : void
EnqueueInfoQueryResponse ( System.Xml.Linq.XElement iq ) : void
EnqueueMessage ( System.Xml.Linq.XElement msg ) : void
EnqueueSubscription ( CancellationToken>.Action callback ) : void
EnqueueSubscription ( CancellationToken>.Action callback, IEnumerable content ) : void
ProcessInfoQuery ( XmlStream xml, InfoQuery iq ) : void
ProcessQueuedMessages ( XmlStream xml, CancellationToken canceltoken ) : void
ProcessQueuedQueries ( XmlStream xml, CancellationToken canceltoken ) : void
ProcessQueuedResponses ( XmlStream xml, CancellationToken canceltoken ) : void
StartPlaintextStream ( CancellationToken canceltoken ) : void
StartTLSStream ( XmlStream xml, CancellationToken canceltoken ) : void
StartXMPPStream ( XmlStream xml, CancellationToken canceltoken ) : void
StartXMPPThread ( XMPP>.Action callback ) : Thread
StartXMPPWithThreadEndedCallback ( CancellationToken canceltoken, XMPP>.Action callback ) : void
Wait ( bool _throw ) : void
XMPPReader ( XmlStream xml, CancellationToken canceltoken ) : void

Method Details

BeginBind() protected method

protected BeginBind ( ) : void
return void

BeginSession() protected method

protected BeginSession ( ) : void
return void

Connect() protected static method

protected static Connect ( string Host, int Port, string ProxyHost = null, int ProxyPort ) : Stream
Host string
Port int
ProxyHost string
ProxyPort int
return Stream

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EnqueueInfoQuery() protected method

protected EnqueueInfoQuery ( string type, string from, string to, CancellationToken>.Action callback ) : void
type string
from string
to string
callback CancellationToken>.Action
return void

EnqueueInfoQuery() protected method

protected EnqueueInfoQuery ( string type, string from, string to, CancellationToken>.Action callback, IEnumerable content ) : void
type string
from string
to string
callback CancellationToken>.Action
content IEnumerable
return void

EnqueueInfoQueryResponse() protected method

protected EnqueueInfoQueryResponse ( System.Xml.Linq.XElement iq ) : void
iq System.Xml.Linq.XElement
return void

EnqueueMessage() protected method

protected EnqueueMessage ( System.Xml.Linq.XElement msg ) : void
msg System.Xml.Linq.XElement
return void

EnqueueSubscription() protected method

protected EnqueueSubscription ( CancellationToken>.Action callback ) : void
callback CancellationToken>.Action
return void

EnqueueSubscription() protected method

protected EnqueueSubscription ( CancellationToken>.Action callback, IEnumerable content ) : void
callback CancellationToken>.Action
content IEnumerable
return void

ProcessInfoQuery() protected method

protected ProcessInfoQuery ( XmlStream xml, InfoQuery iq ) : void
xml XmlStream
iq InfoQuery
return void

ProcessQueuedMessages() protected method

protected ProcessQueuedMessages ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

ProcessQueuedQueries() protected method

protected ProcessQueuedQueries ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

ProcessQueuedResponses() protected method

protected ProcessQueuedResponses ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

Start() public method

public Start ( XMPP>.Action callback ) : void
callback XMPP>.Action
return void

StartPlaintextStream() protected method

protected StartPlaintextStream ( CancellationToken canceltoken ) : void
canceltoken System.Threading.CancellationToken
return void

StartTLSStream() protected method

protected StartTLSStream ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

StartXMPPStream() protected method

protected StartXMPPStream ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

StartXMPPThread() protected method

protected StartXMPPThread ( XMPP>.Action callback ) : Thread
callback XMPP>.Action
return Thread

StartXMPPWithThreadEndedCallback() protected method

protected StartXMPPWithThreadEndedCallback ( CancellationToken canceltoken, XMPP>.Action callback ) : void
canceltoken System.Threading.CancellationToken
callback XMPP>.Action
return void

Stop() public method

public Stop ( bool _throw ) : void
_throw bool
return void

Subscribe() public method

public Subscribe ( string channel, XMPP>.Action callback ) : void
channel string
callback XMPP>.Action
return void

Wait() protected method

protected Wait ( bool _throw ) : void
_throw bool
return void

XMPP() public method

public XMPP ( string jid, string authCookie, string resourceName, string authMechanism = "PLAIN", string proxyHost = null, int proxyPort, string host = null, int port ) : System
jid string
authCookie string
resourceName string
authMechanism string
proxyHost string
proxyPort int
host string
port int
return System

XMPPReader() protected method

protected XMPPReader ( XmlStream xml, CancellationToken canceltoken ) : void
xml XmlStream
canceltoken System.Threading.CancellationToken
return void

Property Details

NamespaceAuth protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceAuth
return System.Xml.Linq.XNamespace

NamespaceBind protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceBind
return System.Xml.Linq.XNamespace

NamespaceClient protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceClient
return System.Xml.Linq.XNamespace

NamespacePush protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespacePush
return System.Xml.Linq.XNamespace

NamespaceSASL protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceSASL
return System.Xml.Linq.XNamespace

NamespaceSession protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceSession
return System.Xml.Linq.XNamespace

NamespaceStartTLS protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceStartTLS
return System.Xml.Linq.XNamespace

NamespaceStream protected_oe static_oe property

protected static XNamespace,System.Xml.Linq NamespaceStream
return System.Xml.Linq.XNamespace