@@ -4,16 +4,61 @@ The `SimplewServer` is the main class to instanciate and manipulate the web serv
44
55## Constructors
66
7+ ### HTTP
8+
9+ ``` csharp
10+ /// <summary >
11+ /// Initialize server with a given IP address and port number
12+ /// </summary >
13+ /// <param name =" address" ></param >
14+ /// <param name =" port" ></param >
15+ public SimpleWServer (IPAddress address , int port )
16+ ```
17+
718``` csharp
8- SimpleWServer (IPAddress address , int port )
19+ /// <summary >
20+ /// Initialize WebSocket server with a given DNS endpoint
21+ /// </summary >
22+ /// <param name =" endpoint" >DNS endpoint</param >
23+ public SimpleWServer (DnsEndPoint endpoint )
24+ ```
25+
26+ ``` csharp
27+ /// <summary >
28+ /// Initialize WebSocket server with a given IP endpoint
29+ /// </summary >
30+ /// <param name =" endpoint" >IP endpoint</param >
31+ public SimpleWServer (IPEndPoint endpoint )
932```
1033
11- The constructor takes an ` IPAddress ` and a ` port ` number.
12- You can use ` IPAddress.Any ` to match all IP addresses of the machine.
34+ ### HTTPS
35+
36+ ``` csharp
37+ /// <summary >
38+ /// Initialize WebSocket server with a given IP address and port number
39+ /// </summary >
40+ /// <param name =" context" >SSL context</param >
41+ /// <param name =" address" >IP address</param >
42+ /// <param name =" port" >Port number</param >
43+ public SimpleWSServer (SslContext context , IPAddress address , int port )
44+ ```
1345
46+ ``` csharp
47+ /// <summary >
48+ /// Initialize WebSocket server with a given DNS endpoint
49+ /// </summary >
50+ /// <param name =" context" >SSL context</param >
51+ /// <param name =" endpoint" >DNS endpoint</param >
52+ public SimpleWSServer (SslContext context , DnsEndPoint endpoint )
53+ ```
1454
1555``` csharp
16- SimpleWSServer (SslContext context , IPAddress address , int port )
56+ /// <summary >
57+ /// Initialize WebSocket server with a given IP endpoint
58+ /// </summary >
59+ /// <param name =" context" >SSL context</param >
60+ /// <param name =" endpoint" >IP endpoint</param >
61+ public SimpleWSServer (SslContext context , IPEndPoint endpoint )
1762```
1863
1964The class ` SimpleWSServer ` is exactly the same as ` SimplewServer ` except it takes a ` SslContext ` as primary argument.
0 commit comments