mikroSDK Reference Manual
web_socket_frame.h
Go to the documentation of this file.
1
31#ifndef _WEB_SOCKET_FRAME_H
32#define _WEB_SOCKET_FRAME_H
33
34//Dependencies
35#include "core/net.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//WebSocket related functions
44error_t webSocketFormatFrameHeader(WebSocket *webSocket,
45 bool_t fin, WebSocketFrameType type, size_t payloadLen);
46
47error_t webSocketParseFrameHeader(WebSocket *webSocket,
48 const WebSocketFrame *frame, WebSocketFrameType *type);
49
50error_t webSocketFormatCloseFrame(WebSocket *webSocket);
51
52//C++ guard
53#ifdef __cplusplus
54}
55#endif
56
57#endif
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
WebSocket API (client and server)
WebSocketFrameType
WebSocket frame types.
Definition web_socket.h:263