WINHTTP_WEB_SOCKET_OPERATION枚举 (winhttp.h)
WINHTTP_WEB_SOCKET_OPERATION枚举包括 WebSocket 操作类型。
语法
typedef enum _WINHTTP_WEB_SOCKET_OPERATION {
WINHTTP_WEB_SOCKET_SEND_OPERATION = 0,
WINHTTP_WEB_SOCKET_RECEIVE_OPERATION = 1,
WINHTTP_WEB_SOCKET_CLOSE_OPERATION = 2,
WINHTTP_WEB_SOCKET_SHUTDOWN_OPERATION = 3
} WINHTTP_WEB_SOCKET_OPERATION;
常量
WINHTTP_WEB_SOCKET_SEND_OPERATION 值: 0 WinHttpWebSocketSend 操作。 |
WINHTTP_WEB_SOCKET_RECEIVE_OPERATION 值:1 WinHttpWebSocketReceive 操作。 |
WINHTTP_WEB_SOCKET_CLOSE_OPERATION 值: 2 WinHttpWebSocketClose 操作。 |
WINHTTP_WEB_SOCKET_SHUTDOWN_OPERATION 值: 3 WinHttpWebSocketShutdown 操作。 |
要求
最低受支持的客户端 | Windows 8 [仅限桌面应用] |
最低受支持的服务器 | Windows Server 2012 [仅限桌面应用] |
标头 | winhttp.h |