doubao_chat/include_lib/net/websrv/wrio.h

22 lines
493 B
C

#include "http.h"
#ifndef __WR_IO_H__
#define __WR_IO_H__
#ifdef __cplusplus
extern "C" {
#endif
int wr_sock_nwrite(SOCKET sock, const char *buf, size_t n);
int wr_read_head(SOCKET sock, char *buf, size_t bufsize);
int wr_load_body(WrHttp *pHttp);
int sendFileStream(const WrHttp *pHttp, const char *filePath);
int virtual_stat(const char *filePath, struct stat *st);
int websrv_virfile_reg(const char *fname, const char *contents, unsigned int len);
#ifdef __cplusplus
}
#endif
#endif