Click or drag to resize
HttpServer Class
Simple Http Server
Inheritance Hierarchy
SystemObject
  AdfHttpServer

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public class HttpServer : IDisposable

The HttpServer type exposes the following members.

Constructors
  NameDescription
Public methodHttpServer(Int32, String)
Initialize new instance
Public methodHttpServer(HttpServerCallback, Int32, String)
Initialize new instance
Top
Methods
  NameDescription
Public methodDispose
Dispose
Public methodEquals
确定指定的 Object 是否等于当前的 Object
(Inherited from Object.)
Protected methodFinalize
允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。
(Inherited from Object.)
Public methodGetHashCode
用作特定类型的哈希函数。
(Inherited from Object.)
Public methodGetType
获取当前实例的 Type
(Inherited from Object.)
Public methodGetWebSocket
获取指定id websocket,未找到则返回null
Protected methodMemberwiseClone
创建当前 Object 的浅表副本。
(Inherited from Object.)
Public methodStart
start
Public methodStop
Stop
Public methodToString
返回表示当前 ObjectString
(Inherited from Object.)
Public methodWebSocketDisconnect
断开连接
Public methodWebSocketDisconnectAll
断开所有连接
Public methodWebSocketForEach
遍历当前具有的WebSocket连接
Top
Properties
  NameDescription
Public propertyAddressFamily
tcp AddressFamily
Public propertyAuthenticateRealm
WWW-Authenticate realm vaue
Public propertyAuthorizationCallback
Authorization callback
Public propertyBacklog
获取或设置监听队列长度
Public propertyCallback
callback
Public propertyEncoding
Encoding, default utf-8
Public propertyIp
ip address
Public propertyIsRuning
is Runing
Public propertyPort
Server Port
Public propertyReadHeadTimeout
头读取超时时间
Public propertyServerName
获取或设置服务器名
Top
Events
  NameDescription
Public eventWebSocketConnectioned
获取或设置连接回调方法
Public eventWebSocketDisconnected
获取或设置关闭回调方法
Top
See Also

Reference