diff seobeo/s_websocket.c @ 125:f236c895604e

[MrJuneJune] Added web socket for chat to this.
author June Park <parkjune1995@gmail.com>
date Thu, 08 Jan 2026 08:46:49 -0800
parents 7b1719fa918c
children 058de208e640
line wrap: on
line diff
--- a/seobeo/s_websocket.c	Thu Jan 08 07:31:32 2026 -0800
+++ b/seobeo/s_websocket.c	Thu Jan 08 08:46:49 2026 -0800
@@ -190,11 +190,7 @@
   return p_ws;
 }
 
-static void Seobeo_WebSocket_Mask_Data(uint8 *data, size_t length, const uint8 *mask)
-{
-  for (size_t i = 0; i < length; i++)
-    data[i] ^= mask[i % 4];
-}
+// Seobeo_WebSocket_Mask_Data moved to s_websocket_common.c
 
 static int32 Seobeo_WebSocket_Send_Frame(Seobeo_WebSocket *p_ws, Seobeo_WebSocket_Opcode opcode,
     const uint8 *payload, size_t payload_length, boolean fin)
@@ -484,16 +480,7 @@
   return p_msg;
 }
 
-void Seobeo_WebSocket_Message_Destroy(Seobeo_WebSocket_Message *p_msg)
-{
-  if (!p_msg)
-    return;
-
-  if (p_msg->data)
-    free(p_msg->data);
-
-  free(p_msg);
-}
+// Seobeo_WebSocket_Message_Destroy moved to s_websocket_common.c
 
 int32 Seobeo_WebSocket_Close(Seobeo_WebSocket *p_ws, uint16 code, const char *reason)
 {