static int _m_Disconnect(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CatLib.Contracts.Network.IConnector __cl_gen_to_be_invoked = (CatLib.Contracts.Network.IConnector)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Disconnect( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_StartServer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CatLib.Contracts.Network.IConnector __cl_gen_to_be_invoked = (CatLib.Contracts.Network.IConnector)translator.FastGetCSObj(L, 1); try { { System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked.StartServer( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }