include: Add winhttp web socket defines.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b86dc3926b
commit
93aea5d86f
|
@ -762,6 +762,54 @@ typedef struct _WINHTTP_REQUEST_STATS
|
||||||
ULONGLONG rgullStats[WinHttpRequestStatMax];
|
ULONGLONG rgullStats[WinHttpRequestStatMax];
|
||||||
} WINHTTP_REQUEST_STATS, *PWINHTTP_REQUEST_STATS;
|
} WINHTTP_REQUEST_STATS, *PWINHTTP_REQUEST_STATS;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
typedef enum _WINHTTP_WEB_SOCKET_BUFFER_TYPE
|
||||||
|
{
|
||||||
|
WINHTTP_WEB_SOCKET_BINARY_MESSAGE_BUFFER_TYPE = 0,
|
||||||
|
WINHTTP_WEB_SOCKET_BINARY_FRAGMENT_BUFFER_TYPE = 1,
|
||||||
|
WINHTTP_WEB_SOCKET_UTF8_MESSAGE_BUFFER_TYPE = 2,
|
||||||
|
WINHTTP_WEB_SOCKET_UTF8_FRAGMENT_BUFFER_TYPE = 3,
|
||||||
|
WINHTTP_WEB_SOCKET_CLOSE_BUFFER_TYPE = 4
|
||||||
|
} WINHTTP_WEB_SOCKET_BUFFER_TYPE;
|
||||||
|
|
||||||
|
typedef enum _WINHTTP_WEB_SOCKET_CLOSE_STATUS
|
||||||
|
{
|
||||||
|
WINHTTP_WEB_SOCKET_SUCCESS_CLOSE_STATUS = 1000,
|
||||||
|
WINHTTP_WEB_SOCKET_ENDPOINT_TERMINATED_CLOSE_STATUS = 1001,
|
||||||
|
WINHTTP_WEB_SOCKET_PROTOCOL_ERROR_CLOSE_STATUS = 1002,
|
||||||
|
WINHTTP_WEB_SOCKET_INVALID_DATA_TYPE_CLOSE_STATUS = 1003,
|
||||||
|
WINHTTP_WEB_SOCKET_EMPTY_CLOSE_STATUS = 1005,
|
||||||
|
WINHTTP_WEB_SOCKET_ABORTED_CLOSE_STATUS = 1006,
|
||||||
|
WINHTTP_WEB_SOCKET_INVALID_PAYLOAD_CLOSE_STATUS = 1007,
|
||||||
|
WINHTTP_WEB_SOCKET_POLICY_VIOLATION_CLOSE_STATUS = 1008,
|
||||||
|
WINHTTP_WEB_SOCKET_MESSAGE_TOO_BIG_CLOSE_STATUS = 1009,
|
||||||
|
WINHTTP_WEB_SOCKET_UNSUPPORTED_EXTENSIONS_CLOSE_STATUS = 1010,
|
||||||
|
WINHTTP_WEB_SOCKET_SERVER_ERROR_CLOSE_STATUS = 1011,
|
||||||
|
WINHTTP_WEB_SOCKET_SECURE_HANDSHAKE_ERROR_CLOSE_STATUS = 1015
|
||||||
|
} WINHTTP_WEB_SOCKET_CLOSE_STATUS;
|
||||||
|
|
||||||
|
typedef struct _WINHTTP_WEB_SOCKET_ASYNC_RESULT
|
||||||
|
{
|
||||||
|
WINHTTP_ASYNC_RESULT AsyncResult;
|
||||||
|
WINHTTP_WEB_SOCKET_OPERATION Operation;
|
||||||
|
} WINHTTP_WEB_SOCKET_ASYNC_RESULT;
|
||||||
|
|
||||||
|
typedef struct _WINHTTP_WEB_SOCKET_STATUS
|
||||||
|
{
|
||||||
|
DWORD dwBytesTransferred;
|
||||||
|
WINHTTP_WEB_SOCKET_BUFFER_TYPE eBufferType;
|
||||||
|
} WINHTTP_WEB_SOCKET_STATUS;
|
||||||
|
|
||||||
|
#define WINHTTP_WEB_SOCKET_MAX_CLOSE_REASON_LENGTH 123
|
||||||
|
#define WINHTTP_WEB_SOCKET_MIN_KEEPALIVE_VALUE 15000
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue