]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | typedef struct lua_socket { | |
9 | int fd; | |
10 | int state; | |
839f8d67 | 11 | int sockettype; |
065c0091 | 12 | long handler; |
9a2954da | 13 | long tag; |
065c0091 CP |
14 | unsigned long identifier; |
15 | struct lua_list *l; | |
60aab72f CP |
16 | struct lua_socket *parent; |
17 | ||
065c0091 CP |
18 | struct lua_socket *next; |
19 | } lua_socket; | |
20 | ||
5d59fe79 CP |
21 | #define SOCKET_CONNECTING 0x00 |
22 | #define SOCKET_CONNECTED 0x01 | |
23 | #define SOCKET_CLOSED 0x02 | |
60aab72f | 24 | #define SOCKET_LISTENING 0x03 |
5d59fe79 | 25 | |
065c0091 CP |
26 | #endif |
27 |