src/__unused/t_htp_srv.c
static int lt_htp_srv__Call( lua_State *L )
{
	struct t_htp_srv *srv;
	struct t_ael     *ael;

	lua_remove( L, 1 );           // remove the CLASS table
	luaL_argcheck( L, lua_isfunction( L, 2 ), 2, "callback function required" );
	ael     = t_ael_check_ud( L, 1, 1 );
	srv     = t_htp_srv_create_ud( L );
	lua_insert( L, -3 );
	srv->rR = luaL_ref( L, LUA_REGISTRYINDEX );

	srv->ael = ael;
	srv->lR  = luaL_ref( L, LUA_REGISTRYINDEX );
	return 1;
}
/**--------------------------------------------------------------------------
 * construct an HTTP Server
 * \param   L      Lua state.
 * \lparam  CLASS  table Http.Server
 * \lparam  ud     T.Loop userdata instance for the Server.
 * \lparam  func   WSAPI style request handler.
 * \return  int    # of values pushed onto the stack.
 * \lreturn ud     T.Http.Server userdata instances.
 * \return  int    # of values pushed onto the stack.
 * --------------------------------------------------------------------------*/
construct an HTTP Server
\param   L      Lua state.
\lparam  CLASS  table Http.Server
\lparam  ud     T.Loop userdata instance for the Server.
\lparam  func   WSAPI style request handler.
\return  int    # of values pushed onto the stack.
\lreturn ud     T.Http.Server userdata instances.
\return  int    # of values pushed onto the stack.
construct an HTTP Server \ param L Lua state . \ lparam CLASS table Http . Server \ lparam ud T . Loop userdata instance for the Server . \ lparam func WSAPI style request handler . \ return int # of values pushed onto the stack . \ lreturn ud T . Http . Server userdata instances . \ return int # of values pushed onto the stack .
static int lt_htp_srv__Call( lua_State *L )
{
	struct t_htp_srv *srv;
	struct t_ael     *ael;
	lua_remove( L, 1 );           
	luaL_argcheck( L, lua_isfunction( L, 2 ), 2, "callback function required" );
	ael     = t_ael_check_ud( L, 1, 1 );
	srv     = t_htp_srv_create_ud( L );
	lua_insert( L, -3 );
	srv->rR = luaL_ref( L, LUA_REGISTRYINDEX );
	srv->ael = ael;
	srv->lR  = luaL_ref( L, LUA_REGISTRYINDEX );
	return 1;
}
static int lt_htp_srv__Call ( lua_State * L ) { struct t_htp_srv * srv ; struct t_ael * ael ; lua_remove ( L , 1 ) ; luaL_argcheck ( L , lua_isfunction ( L , 2 ) , 2 , " " ) ; ael = t_ael_check_ud ( L , 1 , 1 ) ; srv = t_htp_srv_create_ud ( L ) ; lua_insert ( L , -3 ) ; srv -> rR = luaL_ref ( L , LUA_REGISTRYINDEX ) ; srv -> ael = ael ; srv -> lR = luaL_ref ( L , LUA_REGISTRYINDEX ) ; return 1 ; }
construct an HTTP Server
 \param   L      Lua state.
construct an HTTP Server \ param L Lua state .
// remove the CLASS table