Example #1
0
 /// <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;
 }
Example #2
0
 /// <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))
 {
 }
Example #3
0
 /// <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))
 {
 }
Example #4
0
 /// <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;
 }