aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2002-07-08 20:44:12 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2002-07-08 20:44:12 +0000
commitc27087ca95e15ede5a2dcc0b160341fb9bed04ca (patch)
tree8c7a7a0d3cd63eec0528cf03c2fced6f30ff1002 /src
parentcbffc42f299575e56d88527a48e26377f3d1f800 (diff)
downloadluasocket-c27087ca95e15ede5a2dcc0b160341fb9bed04ca.tar.gz
luasocket-c27087ca95e15ede5a2dcc0b160341fb9bed04ca.tar.bz2
luasocket-c27087ca95e15ede5a2dcc0b160341fb9bed04ca.zip
LuaSocket 1.5 (4.1w3)
Diffstat (limited to 'src')
-rw-r--r--src/luasocket.h20
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\*-------------------------------------------------------------------------*/
34LUASOCKET_API int lua_socketlibopen(lua_State *L); 26LUASOCKET_API int lua_socketlibopen(lua_State *L);
35 27