Socket에다 SSL을 사용하는 Channel 클래스
Inheritance: Channel
コード例 #1
0
ファイル: SslChannel.cs プロジェクト: growingdever/Netronics
 public static SslChannel CreateChannel(Socket socket, string host)
 {
     var channel = new SslChannel(socket);
     channel._stream.AuthenticateAsClient(host);
     return channel;
 }
コード例 #2
0
ファイル: SslChannel.cs プロジェクト: growingdever/Netronics
 public static SslChannel CreateChannel(Socket socket, System.Security.Cryptography.X509Certificates.X509Certificate certificate)
 {
     var channel = new SslChannel(socket);
     channel._stream.AuthenticateAsServer(certificate);
     return channel;
 }