CMNetwork/inc/hgl/network/WebSocket.h

14 lines
520 B
C
Raw 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
{
2024-07-25 02:57:29 +08:00
bool GetWebSocketInfo(UTF8String &sec_websocket_key,UTF8String &sec_websocket_protocol,uint &sec_websocket_version,const u8char *data,const uint size);
2022-05-25 19:03:06 +08:00
void MakeWebSocketAccept(UTF8String &result,const UTF8String &sec_websocket_key,const UTF8String &sec_websocket_protocol);
}//namespace network
}//namespace hgl
#endif//HGL_NETWORK_WEBSOCKET_INCLUDE