C# Class agsXMPP.net.BaseSocket

Base Socket class
Mostrar archivo Open project: SiteView/ECC8.13 Class Usage Examples

Public Methods

Method Description
BaseSocket ( ) : System
Connect ( ) : void
Disconnect ( ) : void
Reset ( ) : void

Added for Bosh because we have to tell the BoshClientSocket when to reset the stream

Send ( byte bData ) : void

Send data to the server.

Send ( string data ) : void

StartCompression ( ) : void
StartTls ( ) : void

Protected Methods

Method Description
FireOnConnect ( ) : void
FireOnDisconnect ( ) : void
FireOnError ( Exception ex ) : void
FireOnReceive ( byte b, int length ) : void
FireOnSend ( byte b, int length ) : void
FireOnValidateCertificate ( X509Certificate certificate, int certificateErrors ) : bool
FireOnValidateCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

BaseSocket() public method

public BaseSocket ( ) : System
return System

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

FireOnConnect() protected method

protected FireOnConnect ( ) : void
return void

FireOnDisconnect() protected method

protected FireOnDisconnect ( ) : void
return void

FireOnError() protected method

protected FireOnError ( Exception ex ) : void
ex System.Exception
return void

FireOnReceive() protected method

protected FireOnReceive ( byte b, int length ) : void
b byte
length int
return void

FireOnSend() protected method

protected FireOnSend ( byte b, int length ) : void
b byte
length int
return void

FireOnValidateCertificate() protected method

protected FireOnValidateCertificate ( X509Certificate certificate, int certificateErrors ) : bool
certificate System.Security.Cryptography.X509Certificates.X509Certificate
certificateErrors int
return bool

FireOnValidateCertificate() protected method

protected FireOnValidateCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool

Reset() public method

Added for Bosh because we have to tell the BoshClientSocket when to reset the stream
public Reset ( ) : void
return void

Send() public method

Send data to the server.
public Send ( byte bData ) : void
bData byte
return void

Send() public method

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

StartCompression() public method

public StartCompression ( ) : void
return void

StartTls() public method

public StartTls ( ) : void
return void