aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-03-06 19:01:44 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-03-06 19:01:44 +0000
commit297576affae2113dce05970591adab3e75be65c0 (patch)
treefb10ef307b4e67f92b1d28835a2c0fbf8d2c0151 /src
parenta221087bc007122c2fe127f68dcba150f69d4365 (diff)
downloadluasocket-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.
Diffstat (limited to 'src')
-rw-r--r--src/luasocket.h18
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\*-------------------------------------------------------------------------*/
13void lua_socketlibopen(lua_State *L); 27void lua_socketlibopen(lua_State *L);
14 28
15#endif /* _LUASOCKET_H_ */ 29#endif /* _LUASOCKET_H_ */