diff options
| -rw-r--r-- | src/luasocket.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/luasocket.h b/src/luasocket.h index 319bffb..95720e2 100644 --- a/src/luasocket.h +++ b/src/luasocket.h | |||
| @@ -1,24 +1,17 @@ | |||
| 1 | /*=========================================================================*\ | 1 | /*=========================================================================*\ |
| 2 | * TCP/IP support for LUA | 2 | * Networking support for the Lua language |
| 3 | * Diego Nehab | 3 | * Diego Nehab |
| 4 | * 9/11/1999 | 4 | * 9/11/1999 |
| 5 | * | ||
| 6 | * RCS ID: $Id$ | ||
| 5 | \*=========================================================================*/ | 7 | \*=========================================================================*/ |
| 6 | |||
| 7 | #ifndef _LUASOCKET_H_ | 8 | #ifndef _LUASOCKET_H_ |
| 8 | #define _LUASOCKET_H_ | 9 | #define _LUASOCKET_H_ |
| 9 | 10 | ||
| 10 | /* Current luasocket version */ | ||
| 11 | #define LUASOCKET_VERSION "LuaSocket 1.4" | ||
| 12 | |||
| 13 | /*-------------------------------------------------------------------------*\ | 11 | /*-------------------------------------------------------------------------*\ |
| 14 | * These can be changed to according to the applications' needs. | 12 | * Current luasocket version |
| 15 | \*-------------------------------------------------------------------------*/ | 13 | \*-------------------------------------------------------------------------*/ |
| 16 | /* TCP input buffer size */ | 14 | #define LUASOCKET_VERSION "LuaSocket 1.5" |
| 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 | 15 | ||
| 23 | /*-------------------------------------------------------------------------*\ | 16 | /*-------------------------------------------------------------------------*\ |
| 24 | * This macro prefixes all exported API functions | 17 | * This macro prefixes all exported API functions |
| @@ -28,8 +21,7 @@ | |||
| 28 | #endif | 21 | #endif |
| 29 | 22 | ||
| 30 | /*-------------------------------------------------------------------------*\ | 23 | /*-------------------------------------------------------------------------*\ |
| 31 | * Initializes the library interface with Lua and the socket library. | 24 | * Initializes the library. |
| 32 | * Defines the symbols exported to Lua. | ||
| 33 | \*-------------------------------------------------------------------------*/ | 25 | \*-------------------------------------------------------------------------*/ |
| 34 | LUASOCKET_API int lua_socketlibopen(lua_State *L); | 26 | LUASOCKET_API int lua_socketlibopen(lua_State *L); |
| 35 | 27 | ||
