comparison seobeo/seobeo.h @ 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 6de849867459 058de208e640
comparison
equal deleted inserted replaced
124:dbf14f84d51c 125:f236c895604e
311 /* Send text message to specific WebSocket client. */ 311 /* Send text message to specific WebSocket client. */
312 extern int32 Seobeo_WebSocket_Server_Send_Text(Seobeo_WebSocket_Server_Connection *p_conn, const char *text); 312 extern int32 Seobeo_WebSocket_Server_Send_Text(Seobeo_WebSocket_Server_Connection *p_conn, const char *text);
313 /* Send binary message to specific WebSocket client. */ 313 /* Send binary message to specific WebSocket client. */
314 extern int32 Seobeo_WebSocket_Server_Send_Binary(Seobeo_WebSocket_Server_Connection *p_conn, const uint8 *data, size_t length); 314 extern int32 Seobeo_WebSocket_Server_Send_Binary(Seobeo_WebSocket_Server_Connection *p_conn, const uint8 *data, size_t length);
315 /* Broadcast text message to all connected WebSocket clients. */ 315 /* Broadcast text message to all connected WebSocket clients. */
316 extern void Seobeo_WebSocket_Server_Broadcast_Text(const char *text); 316 extern void Seobeo_WebSocket_Server_Broadcast_Text(const char *text, Seobeo_WebSocket_Server_Connection *origin_p_conn);
317 /* Broadcast binary message to all connected WebSocket clients. */ 317 /* Broadcast binary message to all connected WebSocket clients. */
318 extern void Seobeo_WebSocket_Server_Broadcast_Binary(const uint8 *data, size_t length); 318 extern void Seobeo_WebSocket_Server_Broadcast_Binary(const uint8 *data, size_t length);
319 /* Close WebSocket connection with status code and reason. */ 319 /* Close WebSocket connection with status code and reason. */
320 extern void Seobeo_WebSocket_Server_Connection_Close(Seobeo_WebSocket_Server_Connection *p_conn, uint16 code, const char *reason); 320 extern void Seobeo_WebSocket_Server_Connection_Close(Seobeo_WebSocket_Server_Connection *p_conn, uint16 code, const char *reason);
321 321