|
fastdo
0.6.16
|
WsHTTP服务端 更多...
#include <http_old.hpp>


Public 类型 | |
| using | ClientCtxSharedPointer = typename eiennet::old_v1::Server< _ClientCtx >::ClientCtxSharedPointer |
| using | OpenHandlerFunction = std::function< void(ClientCtxSharedPointer clientCtxPtr) > |
| using | MessageHandlerFunction = std::function< void(ClientCtxSharedPointer clientCtxPtr, winux::AnsiString const &data, int messageType) > |
| using | CloseHandlerFunction = std::function< void(ClientCtxSharedPointer clientCtxPtr, winux::uint16 errCode, winux::AnsiString const &errStr) > |
| using | ErrorHandlerFunction = std::function< void(ClientCtxSharedPointer clientCtxPtr, WebSocketErrorCode ec) > |
| using | ResponseHandlerFunction = std::function< void(ClientCtxSharedPointer &clientCtxPtr, http::Header const &reqHdr, http::Url const &url, http::Header &rspHdr, std::ostream &rspOut) > |
Public 类型 继承自 eiennet::old_v1::Server< _ClientCtx > | |
| using | ClientCtxSharedPointer = winux::SharedPointer< _ClientCtx > |
| using | StartupHandlerFunction = std::function< void(ClientCtxSharedPointer clientCtxPtr) > |
Public 成员函数 | |
| WsHttpServer (HttpServerConfig const &confObj) | |
| WsHttpServer (winux::String const &serverIp, winux::ushort port, int threadCount=10, int listenBacklog=10, double durationSec=0.1) | |
| void | setHandler (winux::String const &urlPath, ResponseHandlerFunction handler) |
| 设置动态页面处理 更多... | |
| void | onOpenHandler (OpenHandlerFunction handler) |
| 设置WebSocket打开事件处理 更多... | |
| void | onMessageHandler (MessageHandlerFunction handler) |
| 设置WebSocket消息到达事件处理 更多... | |
| void | onCloseHandler (CloseHandlerFunction handler) |
| 设置WebSocket关闭事件处理 更多... | |
| void | onErrorHandler (ErrorHandlerFunction handler) |
| 设置WebSocket出错事件处理 更多... | |
Public 成员函数 继承自 eiennet::old_v1::Server< _ClientCtx > | |
| Server (ip::EndPoint const &ep, int threadCount=4, int backlog=0) | |
| 构造函数1 更多... | |
| virtual | ~Server () |
| virtual int | run () |
| void | stop (bool b=true) |
| 是否停止服务运行 更多... | |
| size_t | getClientsCount () const |
| void | onStartupHandler (StartupHandlerFunction handler) |
| void | removeClient (winux::uint64 clientId) |
Public 属性 | |
| HttpServerConfig | config |
WsHTTP服务端
在文件 http_old.hpp 第 416 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::ClientCtxSharedPointer = typename eiennet::old_v1::Server<_ClientCtx>::ClientCtxSharedPointer |
在文件 http_old.hpp 第 419 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::OpenHandlerFunction = std::function< void( ClientCtxSharedPointer clientCtxPtr ) > |
在文件 http_old.hpp 第 421 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::MessageHandlerFunction = std::function< void( ClientCtxSharedPointer clientCtxPtr, winux::AnsiString const & data, int messageType ) > |
在文件 http_old.hpp 第 422 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::CloseHandlerFunction = std::function< void( ClientCtxSharedPointer clientCtxPtr, winux::uint16 errCode, winux::AnsiString const & errStr ) > |
在文件 http_old.hpp 第 423 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::ErrorHandlerFunction = std::function< void( ClientCtxSharedPointer clientCtxPtr, WebSocketErrorCode ec ) > |
在文件 http_old.hpp 第 424 行定义.
| using http::old_v1::ws::WsHttpServer< _ClientCtx >::ResponseHandlerFunction = std::function< void ( ClientCtxSharedPointer & clientCtxPtr, http::Header const & reqHdr, http::Url const & url, http::Header & rspHdr, std::ostream & rspOut ) > |
在文件 http_old.hpp 第 426 行定义.
|
inline |
在文件 http_old.hpp 第 430 行定义.
|
inline |
在文件 http_old.hpp 第 437 行定义.
|
inline |
设置动态页面处理
在文件 http_old.hpp 第 444 行定义.
|
inline |
设置WebSocket打开事件处理
在文件 http_old.hpp 第 447 行定义.
|
inline |
设置WebSocket消息到达事件处理
在文件 http_old.hpp 第 449 行定义.
|
inline |
设置WebSocket关闭事件处理
在文件 http_old.hpp 第 451 行定义.
|
inline |
设置WebSocket出错事件处理
在文件 http_old.hpp 第 453 行定义.
|
inlineoverrideprotectedvirtual |
在文件 http_old.hpp 第 457 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 465 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 532 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 579 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 645 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 677 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 746 行定义.
|
inlineprotected |
在文件 http_old.hpp 第 912 行定义.
|
inlineprotectedvirtual |
在文件 http_old.hpp 第 1036 行定义.
|
inlineprotectedvirtual |
在文件 http_old.hpp 第 1041 行定义.
|
inlineprotectedvirtual |
在文件 http_old.hpp 第 1046 行定义.
|
inlineprotectedvirtual |
在文件 http_old.hpp 第 1051 行定义.
| HttpServerConfig http::old_v1::ws::WsHttpServer< _ClientCtx >::config |
在文件 http_old.hpp 第 428 行定义.
|
protected |
在文件 http_old.hpp 第 1056 行定义.
|
protected |
在文件 http_old.hpp 第 1057 行定义.
|
protected |
在文件 http_old.hpp 第 1058 行定义.
|
protected |
在文件 http_old.hpp 第 1059 行定义.
|
protected |
在文件 http_old.hpp 第 1061 行定义.
|
protected |
在文件 http_old.hpp 第 1062 行定义.