]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/luasocket.h
fix bug in G stats
[irc/quakenet/newserv.git] / lua / luasocket.h
index f7669cac40c2d615b5452040ed5005eb66c6727f..b8df8f46cb75a40448c46283f9c81fbda39b7341 100644 (file)
@@ -8,11 +8,20 @@
 typedef struct lua_socket {
   int fd;
   int state;
+  int sockettype;
   long handler;
+  long tag;
   unsigned long identifier;
   struct lua_list *l;
+  struct lua_socket *parent;
+
   struct lua_socket *next;
 } lua_socket;
 
+#define SOCKET_CONNECTING 0x00
+#define SOCKET_CONNECTED  0x01
+#define SOCKET_CLOSED     0x02
+#define SOCKET_LISTENING  0x03
+
 #endif