xref: /unit/src/nxt_unit_websocket.h (revision 1131:ec7d924d8dfb)
1 
2 /*
3  * Copyright (C) NGINX, Inc.
4  */
5 
6 #ifndef _NXT_UNIT_WEBSOCKET_H_INCLUDED_
7 #define _NXT_UNIT_WEBSOCKET_H_INCLUDED_
8 
9 #include <inttypes.h>
10 
11 #include "nxt_unit_typedefs.h"
12 #include "nxt_websocket_header.h"
13 
14 
15 struct nxt_unit_websocket_frame_s {
16     nxt_unit_request_info_t  *req;
17 
18     uint64_t                  payload_len;
19     nxt_websocket_header_t    *header;
20     uint8_t                   *mask;
21 
22     nxt_unit_buf_t            *content_buf;
23     uint64_t                  content_length;
24 };
25 
26 
27 #endif /* _NXT_UNIT_WEBSOCKET_H_INCLUDED_ */
28