C# Class SIPSorcery.SIP.SIPTLSChannel

Inheritance: SIPChannel
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
Close ( ) : void
EndAuthenticateAsServer ( IAsyncResult ar ) : void
IsConnectionEstablished ( IPEndPoint remoteEndPoint ) : bool
ReceiveCallback ( IAsyncResult ar ) : void
SIPTLSChannel ( X509Certificate2 serverCertificate, IPEndPoint endPoint ) : System
Send ( IPEndPoint dstEndPoint, byte buffer ) : void
Send ( IPEndPoint dstEndPoint, byte buffer, string serverCertificateName ) : void
Send ( IPEndPoint destinationEndPoint, string message ) : void

Protected Methods

Method Description
GetConnectionsList ( ) : SIPConnection>.Dictionary

Private Methods

Method Description
AcceptConnections ( string threadName ) : void
DisplayCertificateChain ( X509Certificate2 certificate ) : void
DisplayCertificateInformation ( SslStream stream ) : void
DisplaySecurityLevel ( SslStream stream ) : void
DisplaySecurityServices ( SslStream stream ) : void
DisplayStreamProperties ( SslStream stream ) : void
Dispose ( bool disposing ) : void
EndAuthenticateAsClient ( IAsyncResult ar ) : void
EndConnect ( IAsyncResult ar ) : void
EndSend ( IAsyncResult ar ) : void
GetServerCert ( ) : X509Certificate
Initialise ( ) : void
SIPTLSMessageReceived ( SIPChannel channel, SIPEndPoint remoteEndPoint, byte buffer ) : void
SIPTLSSocketDisconnected ( IPEndPoint remoteEndPoint ) : void
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

Close() public method

public Close ( ) : void
return void

EndAuthenticateAsServer() public method

public EndAuthenticateAsServer ( IAsyncResult ar ) : void
ar IAsyncResult
return void

GetConnectionsList() protected method

protected GetConnectionsList ( ) : SIPConnection>.Dictionary
return SIPConnection>.Dictionary

IsConnectionEstablished() public method

public IsConnectionEstablished ( IPEndPoint remoteEndPoint ) : bool
remoteEndPoint System.Net.IPEndPoint
return bool

ReceiveCallback() public method

public ReceiveCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

SIPTLSChannel() public method

public SIPTLSChannel ( X509Certificate2 serverCertificate, IPEndPoint endPoint ) : System
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
endPoint System.Net.IPEndPoint
return System

Send() public method

public Send ( IPEndPoint dstEndPoint, byte buffer ) : void
dstEndPoint System.Net.IPEndPoint
buffer byte
return void

Send() public method

public Send ( IPEndPoint dstEndPoint, byte buffer, string serverCertificateName ) : void
dstEndPoint System.Net.IPEndPoint
buffer byte
serverCertificateName string
return void

Send() public method

public Send ( IPEndPoint destinationEndPoint, string message ) : void
destinationEndPoint System.Net.IPEndPoint
message string
return void