Accept() публичный Метод

public Accept ( Socket socket ) : void
socket System.Net.Sockets.Socket
Результат void
Пример #1
0
 /// <summary>
 /// Initializes server connection
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="protocol"></param>
 /// <param name="certificate"></param>
 /// <param name="privatekey"></param>
 public OpenSslStream(Socket socket, OpenSslProtocol protocol, OpenSslCertificate certificate, OpenSslPrivateKey privatekey)
 {
     context                = new OpenSslContext(protocol, true);
     connection             = new OpenSslConnection(context);
     connection.Certificate = certificate;
     connection.PrivateKey  = privatekey;
     connection.Accept(socket);
 }
Пример #2
0
 /// <summary>
 /// Initializes server connection
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="ctx"></param>
 public OpenSslStream(Socket socket, OpenSslContext ctx)
 {
     context = ctx;
     connection = new OpenSslConnection(context);
     connection.Accept(socket);
 }
Пример #3
0
 /// <summary>
 /// Initializes server connection
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="protocol"></param>
 /// <param name="certificate"></param>
 /// <param name="privatekey"></param>
 public OpenSslStream(Socket socket, OpenSslProtocol protocol, OpenSslCertificate certificate, OpenSslPrivateKey privatekey)
 {
     context = new OpenSslContext(protocol, true);
     connection = new OpenSslConnection(context);
     connection.Certificate = certificate;
     connection.PrivateKey = privatekey;
     connection.Accept(socket);
 }
Пример #4
0
 /// <summary>
 /// Initializes server connection
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="ctx"></param>
 public OpenSslStream(Socket socket, OpenSslContext ctx)
 {
     context    = ctx;
     connection = new OpenSslConnection(context);
     connection.Accept(socket);
 }