diff seobeo/seobeo.h @ 66:a0f0ad5e42eb

[Misc] taking out capital P stuff.
author June Park <parkjune1995@gmail.com>
date Wed, 24 Dec 2025 06:34:19 -0800
parents a30944e5719e
children 4532ce6d9eb8
line wrap: on
line diff
--- a/seobeo/seobeo.h	Wed Dec 24 06:22:59 2025 -0800
+++ b/seobeo/seobeo.h	Wed Dec 24 06:34:19 2025 -0800
@@ -49,11 +49,11 @@
 
 // --- TCP --- //
 // --- Generate a Server Handle. ---//
-extern Seobeo_PHandle Seobeo_Stream_Handle_Server_Create(const char *host,  const char* port);
+extern Seobeo_Handle *Seobeo_Stream_Handle_Server_Create(const char *host,  const char* port);
 // --- Generate a Client Handle. ---//
-extern Seobeo_PHandle Seobeo_Stream_Handle_Client_Create(const char *host,  const char* port, boolean use_tls);
+extern Seobeo_Handle *Seobeo_Stream_Handle_Client_Create(const char *host,  const char* port, boolean use_tls);
 // --- Generate a Client Handle from given Server Handle. ---//
-extern Seobeo_PHandle Seobeo_Stream_Handle_Server_Accept(Seobeo_PHandle p_server_handle);
+extern Seobeo_Handle *Seobeo_Stream_Handle_Server_Accept(Seobeo_Handle *p_server_handle);
 
 // --- Web --- //
 /* Generate HTTP 1.1 Header value with given content_types and length. */
@@ -65,15 +65,15 @@
 
 // --- Helper functions --- //
 /* Destroy handle. It will handle all NULL poointers. */
-extern void           Seobeo_Handle_Destroy(Seobeo_PHandle p_handle);
+extern void           Seobeo_Handle_Destroy(Seobeo_Handle *p_handle);
 /* Write to socket from write_buffer in the handle. */
-extern int            Seobeo_Handle_Flush(Seobeo_PHandle p_handle); 
+extern int            Seobeo_Handle_Flush(Seobeo_Handle *p_handle); 
 /* Write to socket with given data source, if the data source is bigger than the write buffer for handle then we just directly write from the data source. */
-extern int            Seobeo_Handle_Queue(Seobeo_PHandle p_handle, const uint8_t *data, uint32_t data_size); 
+extern int            Seobeo_Handle_Queue(Seobeo_Handle *p_handle, const uint8_t *data, uint32_t data_size); 
 /* Read to socket from read_buffer in the handle. */
-extern int            Seobeo_Handle_Read(Seobeo_PHandle p_handle); 
+extern int            Seobeo_Handle_Read(Seobeo_Handle *p_handle); 
 /* Move to read_buffer to front and we already consumed the given amount in the handle. */
-extern void           Seobeo_Handle_Consume(Seobeo_PHandle p_handle, uint32 consumed);
+extern void           Seobeo_Handle_Consume(Seobeo_Handle *p_handle, uint32 consumed);
 /* Assign IP4 or IP6 to sockaddr. TODO: Maybe create my own struct for this? */
 extern void           *Seobeo_Get_IP4_Or_IP6(struct sockaddr *sa);
 #endif