Exemplo n.º 1
0
 /// <summary>
 /// Initialize WebSocket client
 /// </summary>
 /// <param name="context">SSL context</param>
 public WssClient(SslContext context) : base(context)
 {
     WebSocket = new WebSocket(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize WebSocket client 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 WssClient(SslContext context, string address, int port) : base(context, address, port)
 {
     WebSocket = new WebSocket(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initialize WebSocket client with a given IP endpoint
 /// </summary>
 /// <param name="context">SSL context</param>
 /// <param name="endpoint">IP endpoint</param>
 public WssClient(SslContext context, IPEndPoint endpoint) : base(context, endpoint)
 {
     WebSocket = new WebSocket(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initialize WebSocket 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 WssServer(SslContext context, IPAddress address, int port) : base(context, address, port)
 {
     WebSocket = new WebSocket(this);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initialize WebSocket server
 /// </summary>
 /// <param name="context">SSL context</param>
 public WssServer(SslContext context) : base(context)
 {
     WebSocket = new WebSocket(this);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initialize SSL client with a given IP endpoint
 /// </summary>
 /// <param name="context">SSL context</param>
 /// <param name="endpoint">IP endpoint</param>
 public SslClient(SslContext context, IPEndPoint endpoint)
 {
     Address = endpoint.Address.ToString(); Context = context; Endpoint = endpoint;
 }
Exemplo n.º 7
0
 /// <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)
 {
     Context = context; Endpoint = endpoint;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initialize HTTPS client with a given IP endpoint
 /// </summary>
 /// <param name="context">SSL context</param>
 /// <param name="endpoint">IP endpoint</param>
 public HttpsClientEx(SslContext context, IPEndPoint endpoint) : base(context, endpoint)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initialize HTTPS client 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 HttpsClient(SslContext context, string address, int port) : base(context, address, port)
 {
     Request = new HttpRequest(); Response = new HttpResponse();
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initialize HTTPS server
 /// </summary>
 /// <param name="context">SSL context</param>
 public HttpsServer(SslContext context) : base(context)
 {
     Cache = new FileCache();
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initialize HTTPS client 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 HttpsClientEx(SslContext context, string address, int port) : base(context, address, port)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initialize HTTPS server with a given IP endpoint
 /// </summary>
 /// <param name="context">SSL context</param>
 /// <param name="endpoint">IP endpoint</param>
 public HttpsServer(SslContext context, IPEndPoint endpoint) : base(context, endpoint)
 {
     Cache = new FileCache();
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initialize HTTPS 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 HttpsServer(SslContext context, string address, int port) : base(context, address, port)
 {
     Cache = new FileCache();
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initialize SSL server
 /// </summary>
 /// <param name="context">SSL context</param>
 public SslServer(SslContext context)
 {
     Context = context; Endpoint = new IPEndPoint(IPAddress.Any, 0);
 }
Exemplo n.º 15
0
 /// <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))
 {
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initialize HTTPS client with a given IP endpoint
 /// </summary>
 /// <param name="context">SSL context</param>
 /// <param name="endpoint">IP endpoint</param>
 public HttpsClient(SslContext context, IPEndPoint endpoint) : base(context, endpoint)
 {
     Request = new HttpRequest(); Response = new HttpResponse();
 }
Exemplo n.º 17
0
 /// <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;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Initialize HTTPS client
 /// </summary>
 /// <param name="context">SSL context</param>
 public HttpsClient(SslContext context) : base(context)
 {
     Request = new HttpRequest(); Response = new HttpResponse();
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initialize SSL client
 /// </summary>
 /// <param name="context">SSL context</param>
 public SslClient(SslContext context)
 {
     Address = IPAddress.Any.ToString(); Context = context; Endpoint = new IPEndPoint(IPAddress.Any, 0);
 }
Exemplo n.º 20
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 SslServer(SslContext context, string address, int port) : this(context, new IPEndPoint(IPAddress.Parse(address), port))
 {
 }