diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luasocket.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/luasocket.h b/src/luasocket.h index 793a315..3c6578c 100644 --- a/src/luasocket.h +++ b/src/luasocket.h | |||
@@ -7,9 +7,23 @@ | |||
7 | #ifndef _LUASOCKET_H_ | 7 | #ifndef _LUASOCKET_H_ |
8 | #define _LUASOCKET_H_ | 8 | #define _LUASOCKET_H_ |
9 | 9 | ||
10 | #define LUASOCKET_VERSION "LuaSocket 1.2" | 10 | /* Current luasocket version */ |
11 | #define LUASOCKET_BUFFERSIZE 8192 | 11 | #define LUASOCKET_VERSION "LuaSocket 1.2.1" |
12 | 12 | ||
13 | /*-------------------------------------------------------------------------*\ | ||
14 | * These can be changed to according to the applications' needs. | ||
15 | \*-------------------------------------------------------------------------*/ | ||
16 | /* TCP input buffer size */ | ||
17 | #define LUASOCKET_TCPBUFFERSIZE 8192 | ||
18 | |||
19 | /* The largest datagram handled by LuaSocket */ | ||
20 | #define LUASOCKET_UDPBUFFERSIZE 4096 | ||
21 | /* note that 576 bytes is the maximum safe value */ | ||
22 | |||
23 | /*-------------------------------------------------------------------------*\ | ||
24 | * Initializes the library interface with Lua and the socket library. | ||
25 | * Defines the symbols exported to Lua. | ||
26 | \*-------------------------------------------------------------------------*/ | ||
13 | void lua_socketlibopen(lua_State *L); | 27 | void lua_socketlibopen(lua_State *L); |
14 | 28 | ||
15 | #endif /* _LUASOCKET_H_ */ | 29 | #endif /* _LUASOCKET_H_ */ |