]> jfr.im git - irc/quakenet/newserv.git/blame - lua/luasocket.h
merge
[irc/quakenet/newserv.git] / lua / luasocket.h
CommitLineData
065c0091
CP
1/* Copyright (C) Chris Porter 2007 */
2
3#ifndef _LUA_SOCKET_H
4#define _LUA_SOCKET_H
5
6#include "lua.h"
7
8typedef struct lua_socket {
9 int fd;
10 int state;
11 long handler;
9a2954da 12 long tag;
065c0091
CP
13 unsigned long identifier;
14 struct lua_list *l;
15 struct lua_socket *next;
16} lua_socket;
17
5d59fe79
CP
18#define SOCKET_CONNECTING 0x00
19#define SOCKET_CONNECTED 0x01
20#define SOCKET_CLOSED 0x02
21
065c0091
CP
22#endif
23