CMNetwork/inc/hgl/network/WebSocket.h

14 lines
510 B
C
Raw Permalink Normal View History

2022-05-25 19:03:06 +08:00
#ifndef HGL_NETWORK_WEBSOCKET_INCLUDE
#define HGL_NETWORK_WEBSOCKET_INCLUDE
2023-07-15 00:46:34 +08:00
#include<hgl/type/String.h>
2022-05-25 19:03:06 +08:00
namespace hgl
{
namespace network
{
bool GetWebSocketInfo(U8String &sec_websocket_key,U8String &sec_websocket_protocol,uint &sec_websocket_version,const u8char *data,const uint size);
void MakeWebSocketAccept(U8String &result,const U8String &sec_websocket_key,const U8String &sec_websocket_protocol);
2022-05-25 19:03:06 +08:00
}//namespace network
}//namespace hgl
#endif//HGL_NETWORK_WEBSOCKET_INCLUDE