/// <summary> /// Initialize SSL client with a given server IP address and port number /// </summary> /// <param name="context">SSL context</param> /// <param name="address">IP address</param> /// <param name="port">Port number</param> public SslClient(SslContext context, string address, int port) : this(context, new IPEndPoint(IPAddress.Parse(address), port)) { Address = address; }
/// <summary> /// Initialize SSL server with a given IP endpoint /// </summary> /// <param name="context">SSL context</param> /// <param name="endpoint">IP endpoint</param> public SslServer(SslContext context, IPEndPoint endpoint) { Id = Guid.NewGuid(); Context = context; Endpoint = endpoint; }
/// <summary> /// Initialize SSL client with a given server IP address and port number /// </summary> /// <param name="context">SSL context</param> /// <param name="address">IP address</param> /// <param name="port">Port number</param> public SslClient(SslContext context, IPAddress address, int port) : this(context, new IPEndPoint(address, port)) { }
/// <summary> /// Initialize SSL server with a given IP address and port number /// </summary> /// <param name="context">SSL context</param> /// <param name="address">IP address</param> /// <param name="port">Port number</param> public SslServer(SslContext context, string address, int port) : this(context, new IPEndPoint(IPAddress.Parse(address), port)) { }