1 Star 0 Fork 0

涩女郎/webdis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
websocket.h 413 Bytes
一键复制 编辑 原始数据 按行查看 历史
Nicolas Favre-Felix 提交于 13年前 . Removed endian.h
#ifndef WEBSOCKET_H
#define WEBSOCKET_H
#include <stdlib.h>
#include <stdint.h>
struct http_client;
struct cmd;
enum ws_state {
WS_ERROR,
WS_READING,
WS_MSG_COMPLETE};
struct ws_msg {
char *payload;
size_t payload_sz;
size_t total_sz;
};
int
ws_handshake_reply(struct http_client *c);
enum ws_state
ws_add_data(struct http_client *c);
int
ws_reply(struct cmd *cmd, const char *p, size_t sz);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/showmsg/webdis.git
git@gitee.com:showmsg/webdis.git
showmsg
webdis
webdis
master

搜索帮助