lunbound.c
/*
 * Get FD to watch in for readability in your event loop
 */
Get FD to watch in for readability in your event loop
Get FD to watch in for readability in your event loop
static int lub_ctx_getfd(lua_State *L) {
	struct ub_ctx **ctx = luaL_checkudata(L, 1, "ub_ctx");
	lua_pushinteger(L, ub_fd(*ctx));
	return 1;
}
static int lub_ctx_getfd ( lua_State * L ) { struct ub_ctx * * ctx = luaL_checkudata ( L , 1 , " " ) ; lua_pushinteger ( L , ub_fd ( * ctx ) ) ; return 1 ; }
Get FD to watch in for readability in your event loop
Get FD to watch in for readability in your event loop