diff seobeo/seobeo.h @ 17:d97ec3ded2ae

[Seobeo] Few changes... - Fixed seobeo edge for macos - Updated so that socket creation can be used for both client and server - Started on a cutelient library for making connection to the server.
author June Park <parkjune1995@gmail.com>
date Sat, 04 Oct 2025 07:53:12 -0700
parents fb2cff495a60
children fa2b8af609d9
line wrap: on
line diff
--- a/seobeo/seobeo.h	Fri Oct 03 09:55:51 2025 -0700
+++ b/seobeo/seobeo.h	Sat Oct 04 07:53:12 2025 -0700
@@ -70,7 +70,7 @@
 } Seobeo_ServerMode;
 
 // --- Socket, IP related --- //
-extern int            Seobeo_CreateSocket(int32 stream, const char *host,  const char* port, int32 backlog);
+extern int            Seobeo_CreateSocket(int32 stream, const char *host,  const char* port);
 extern void           *Seobeo_GetIP4OrIP6(struct sockaddr *sa);
 
 // --- TCP --- //
@@ -85,6 +85,8 @@
 extern int            Seobeo_Web_StartBasicHTTPServer(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
 extern void           *Seobeo_Web_Edge_Worker(void *vargs); // Maybe not web only...
 extern void           Seobeo_Web_Edge(Seobeo_PHandle p_server_handle, int thread_count, Dowa_PHashMap p_html_cache);
+extern int            Seobeo_Web_ClientGet(const char *host, const char *port, const char *path);
+
 
 // --- Helper functions --- //
 extern void           Seobeo_Handle_Destroy(Seobeo_PHandle p_handle);