| HttpServer Class |
Namespace: Adf
The HttpServer type exposes the following members.
| Name | Description | |
|---|---|---|
| HttpServer(Int32, String) |
Initialize new instance
| |
| HttpServer(HttpServerCallback, Int32, String) |
Initialize new instance
|
| Name | Description | |
|---|---|---|
| Dispose |
Dispose
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode |
用作特定类型的哈希函数。
(Inherited from Object.) | |
| GetType |
获取当前实例的 Type。
(Inherited from Object.) | |
| GetWebSocket |
获取指定id websocket,未找到则返回null
| |
| MemberwiseClone |
创建当前 Object 的浅表副本。
(Inherited from Object.) | |
| Start |
start
| |
| Stop |
Stop
| |
| ToString | (Inherited from Object.) | |
| WebSocketDisconnect |
断开连接
| |
| WebSocketDisconnectAll |
断开所有连接
| |
| WebSocketForEach |
遍历当前具有的WebSocket连接
|
| Name | Description | |
|---|---|---|
| AddressFamily |
tcp AddressFamily
| |
| AuthenticateRealm |
WWW-Authenticate realm vaue
| |
| AuthorizationCallback |
Authorization callback
| |
| Backlog |
获取或设置监听队列长度
| |
| Callback |
callback
| |
| Encoding |
Encoding, default utf-8
| |
| Ip |
ip address
| |
| IsRuning |
is Runing
| |
| Port |
Server Port
| |
| ReadHeadTimeout |
头读取超时时间
| |
| ServerName |
获取或设置服务器名
|
| Name | Description | |
|---|---|---|
| WebSocketConnectioned |
获取或设置连接回调方法
| |
| WebSocketDisconnected |
获取或设置关闭回调方法
|