C# Class agsXMPP.net.BoshClientSocket

Inheritance: BaseSocket
Mostrar archivo Open project: SiteView/ECC8.13

Private Properties

Property Type Description
BuildPostData string
GenerateKeys void
GenerateRid int
GenerateSeed string
GetRandomNumber int
Init void
OnEndWrite void
OnGetRequestStream void
OnGetResponse void
OnGetSessionRequestResponse void
OnGetSessionRequestStream void
ParseResponse void
StartWebRequest void
StartWebRequest void
TerminateBoshSession void

Public Methods

Method Description
BoshClientSocket ( XmppConnection con ) : System
Connect ( ) : void
Disconnect ( ) : void
RequestBoshSession ( ) : void
Reset ( ) : void
Send ( byte bData ) : void
Send ( string data ) : void
TimeOutGetRequestStream ( Object stateObj ) : void

Private Methods

Method Description
BuildPostData ( ) : string
GenerateKeys ( ) : void

Generates a bunch of keys

GenerateRid ( ) : int
GenerateSeed ( ) : string
GetRandomNumber ( int min, int max ) : int
Init ( ) : void
OnEndWrite ( IAsyncResult ar ) : void
OnGetRequestStream ( IAsyncResult ar ) : void
OnGetResponse ( IAsyncResult ar ) : void
OnGetSessionRequestResponse ( IAsyncResult result ) : void
OnGetSessionRequestStream ( IAsyncResult ar ) : void
ParseResponse ( string res, string &body, string &stanzas ) : void

This is ugly code, but currently all BOSH server implementaions are not namespace correct, which means we can't use the XML parser here and have to spit it with string functions.

StartWebRequest ( ) : void
StartWebRequest ( bool retry, string content ) : void
TerminateBoshSession ( ) : void

Method Details

BoshClientSocket() public method

public BoshClientSocket ( XmppConnection con ) : System
con XmppConnection
return System

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

RequestBoshSession() public method

public RequestBoshSession ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Send() public method

public Send ( byte bData ) : void
bData byte
return void

Send() public method

public Send ( string data ) : void
data string
return void

TimeOutGetRequestStream() public method

public TimeOutGetRequestStream ( Object stateObj ) : void
stateObj Object
return void