xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
HttpServer.x
浏览该文件的文档.
1
5class HttpServer {
6
7public:
8 // 服务器模型常量定义
13 public static const int DEFAULT_MODEL; // 默认网络模型
19 public static const int SELECT_MODEL; // SELECT网络模型
25 public static const int POLL_MODEL; // POLL网络模型
31 public static const int EPOLL_MODEL; // EPOLL网络模型
36 public static const int ALLOW_UPGRADE; // 允许升级连接标志
41 public HttpServer(); // 构造函数
47 public bool setMaxConnection(int); // 设置最大连接数
53 public bool setConnectionTimeout(int); // 设置连接超时时间
59 public bool setIpConnectionLimit(int); // 设置IP连接限制
65 public bool setThreadPoolSize(int); // 设置线程池大小
66 public int addWebsite(String, Website); // 添加网站配置
67 public void quiesce(); // 优雅停止接收新连接
68 public void close(); // 关闭服务器
69 public bool stop(); // 停止服务器
70 public bool isRunning(); // 检查服务器运行状态
71 public bool start(int, int); // 启动服务器
72 public bool configHttps(bool, String, String); // 配置HTTPS
73 public void finalize(); // 清理资源
74};
void finalize()
static const int POLL_MODEL
Definition HttpServer.x:25
bool start(int, int)
bool isRunning()
static const int DEFAULT_MODEL
Definition HttpServer.x:13
void close()
bool setConnectionTimeout(int)
bool setMaxConnection(int)
bool stop()
bool setIpConnectionLimit(int)
int addWebsite(String, Website)
bool configHttps(bool, String, String)
static const int SELECT_MODEL
Definition HttpServer.x:19
bool setThreadPoolSize(int)
void quiesce()
static const int ALLOW_UPGRADE
Definition HttpServer.x:36
static const int EPOLL_MODEL
Definition HttpServer.x:31
Definition String.x:5