blob: 499a3268cddbde93bc9af5c4163ee8873ae2638c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_WEBSOCKET_H_INCLUDED_
#define _NXT_WEBSOCKET_H_INCLUDED_
enum {
NXT_WEBSOCKET_ACCEPT_SIZE = 28,
};
NXT_EXPORT size_t nxt_websocket_frame_header_size(const void *data);
NXT_EXPORT uint64_t nxt_websocket_frame_payload_len(const void *data);
NXT_EXPORT void *nxt_websocket_frame_init(void *data, uint64_t payload_len);
NXT_EXPORT void nxt_websocket_accept(u_char *accept, const void *key);
#endif /* _NXT_WEBSOCKET_H_INCLUDED_ */
|