Socket에다 SSL을 사용하는 Channel 클래스
상속: Channel
예제 #1
0
 public static SslChannel CreateChannel(Socket socket, string host)
 {
     var channel = new SslChannel(socket);
     channel._stream.AuthenticateAsClient(host);
     return channel;
 }
예제 #2
0
 public static SslChannel CreateChannel(Socket socket, System.Security.Cryptography.X509Certificates.X509Certificate certificate)
 {
     var channel = new SslChannel(socket);
     channel._stream.AuthenticateAsServer(certificate);
     return channel;
 }