blob: 319bffb483fdf50d88f89b379f5a82c1ac7e920f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*=========================================================================*\
* TCP/IP support for LUA
* Diego Nehab
* 9/11/1999
\*=========================================================================*/
#ifndef _LUASOCKET_H_
#define _LUASOCKET_H_
/* Current luasocket version */
#define LUASOCKET_VERSION "LuaSocket 1.4"
/*-------------------------------------------------------------------------*\
* These can be changed to according to the applications' needs.
\*-------------------------------------------------------------------------*/
/* TCP input buffer size */
#define LUASOCKET_TCPBUFFERSIZE 8192
/* The largest datagram handled by LuaSocket */
#define LUASOCKET_UDPBUFFERSIZE 4096
/* note that 576 bytes is the maximum safe value */
/*-------------------------------------------------------------------------*\
* This macro prefixes all exported API functions
\*-------------------------------------------------------------------------*/
#ifndef LUASOCKET_API
#define LUASOCKET_API extern
#endif
/*-------------------------------------------------------------------------*\
* Initializes the library interface with Lua and the socket library.
* Defines the symbols exported to Lua.
\*-------------------------------------------------------------------------*/
LUASOCKET_API int lua_socketlibopen(lua_State *L);
#endif /* _LUASOCKET_H_ */
|