src/server/util/io.h

changeset 513
9a49c245a49c
parent 498
0d80f8a2b29f
--- a/src/server/util/io.h	Tue Sep 12 18:08:11 2023 +0200
+++ b/src/server/util/io.h	Sat Mar 30 12:35:09 2024 +0100
@@ -55,6 +55,9 @@
 #define IO_POLL_IN          1
 #define IO_POLL_OUT         2
     
+#define IO_STREAM_TYPE_HTTP 0x48545450
+#define IO_STREAM_TYPE_SSL  0x53534C
+    
 typedef struct IOStream     IOStream;
 typedef struct Sysstream    Sysstream;
 typedef struct HttpStream   HttpStream;
@@ -78,6 +81,7 @@
     io_setmode_f  setmode;
     io_poll_f     poll;
     int           io_errno;
+    unsigned int  type;
 };
 
 struct Sysstream {
@@ -180,7 +184,7 @@
     int      error;
 } SSLStream;
 
-
+void io_set_max_writes(int n);
 
 /* system stream */
 IOStream* Sysstream_new(pool_handle_t *pool, SYS_SOCKET fd);

mercurial