Connect() public method

public Connect ( Socket socket ) : void
socket System.Net.Sockets.Socket
return void
Example #1
0
 /// <summary>
 /// Initializes client connection
 /// </summary>
 /// <param name="socket"></param>
 public OpenSslStream(Socket socket, OpenSslProtocol protocol)
 {
     context = new OpenSslContext(protocol, false);
     connection = new OpenSslConnection(context);
     connection.Connect(socket);
 }
Example #2
0
 /// <summary>
 /// Initializes client connection
 /// </summary>
 /// <param name="socket"></param>
 public OpenSslStream(Socket socket, OpenSslProtocol protocol)
 {
     context    = new OpenSslContext(protocol, false);
     connection = new OpenSslConnection(context);
     connection.Connect(socket);
 }