/// <summary> /// Initialize SSL server with a given IP endpoint /// </summary> /// <param name="context">SSL context</param> /// <param name="endpoint">IP endpoint</param> public SslNetworkServer(SslNetworkContext context, IPEndPoint endpoint) : base(endpoint) { Context = context; }
/// <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 SslNetworkServer(SslNetworkContext context, IPAddress address, Int32 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 SslNetworkServer(SslNetworkContext context, String address, Int32 port) : this(context, new IPEndPoint(IPAddress.Parse(address), port)) { }
/// <summary> /// Initialize SSL client with a given IP endpoint /// </summary> /// <param name="context">SSL context</param> /// <param name="endpoint">IP endpoint</param> public SslNetworkClient(SslNetworkContext context, IPEndPoint endpoint) : base(endpoint) { Address = endpoint.Address.ToString(); Context = context; }