diff seobeo/s_linux_network.c @ 71:75de5903355c

Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
author June Park <parkjune1995@gmail.com>
date Sun, 28 Dec 2025 20:34:22 -0800
parents 6626ec933933
children 70401cf61e97
line wrap: on
line diff
--- a/seobeo/s_linux_network.c	Thu Dec 25 20:10:46 2025 -0800
+++ b/seobeo/s_linux_network.c	Sun Dec 28 20:34:22 2025 -0800
@@ -45,7 +45,7 @@
 
   if (listen(socket_fd, 16) != 0)
   { 
-    printf("Closing: %d", socket_fd);
+    printf("Closing: %d\n", socket_fd);
     perror("listen"); close(socket_fd); return NULL; 
   }
 
@@ -202,7 +202,7 @@
   Seobeo_SSL_Cleanup(p_handle);
 
   if (p_handle->socket) {
-    printf("Closing: %d", p_handle->socket);
+    printf("Closing: %d\n", p_handle->socket);
     close(p_handle->socket);
   }
 
@@ -334,7 +334,8 @@
     read_size = Seobeo_SSL_Read(p_handle, p_handle->read_buffer + p_handle->read_buffer_len, free_space);
     if (read_size < 0) return read_size;  // -1 for error, -2 for closed
     if (read_size == 0) return 0;  // would block
-  }else
+  }
+  else
   {
     read_size = (int32)read(p_handle->socket,
                             p_handle->read_buffer + p_handle->read_buffer_len,