]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/luasocket.h
fix makefile of jupe module
[irc/quakenet/newserv.git] / lua / luasocket.h
index f7669cac40c2d615b5452040ed5005eb66c6727f..ed402ce2fb509c98df4c9c43e7f252fcbe7a853f 100644 (file)
@@ -9,10 +9,18 @@ typedef struct lua_socket {
   int fd;
   int state;
   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