diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-06 19:01:44 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-06 19:01:44 +0000 |
| commit | 297576affae2113dce05970591adab3e75be65c0 (patch) | |
| tree | fb10ef307b4e67f92b1d28835a2c0fbf8d2c0151 | |
| parent | a221087bc007122c2fe127f68dcba150f69d4365 (diff) | |
| download | luasocket-297576affae2113dce05970591adab3e75be65c0.tar.gz luasocket-297576affae2113dce05970591adab3e75be65c0.tar.bz2 luasocket-297576affae2113dce05970591adab3e75be65c0.zip | |
Updated for release 1.2.1
Buffer size constants are now part of luasocket.h.
| -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_ */ |
