3 /*=========================================================================*\
5 * Networking support for the Lua language
8 \*=========================================================================*/
11 /*-------------------------------------------------------------------------*\
12 * Current socket library version
13 \*-------------------------------------------------------------------------*/
14 #define LUASOCKET_VERSION "LuaSocket 2.1-rc1"
15 #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2012 Diego Nehab"
16 #define LUASOCKET_AUTHORS "Diego Nehab"
18 /*-------------------------------------------------------------------------*\
19 * This macro prefixes all exported API functions
20 \*-------------------------------------------------------------------------*/
22 #define LUASOCKET_API extern
25 #if LUA_VERSION_NUM > 501 & !( defined LUA_COMPAT_MODULE)
26 # error Lua 5.2 requires LUA_COMPAT_MODULE defined for luaL_openlib
29 /*-------------------------------------------------------------------------*\
30 * Initializes the library.
31 \*-------------------------------------------------------------------------*/
32 LUASOCKET_API
int luaopen_socket_core(lua_State
*L
);
34 #endif /* LUASOCKET_H */