static int _m_Dispose(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Networks.HjTcpNetwork gen_to_be_invoked = (Networks.HjTcpNetwork)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Dispose(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_SendMessage(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Networks.HjTcpNetwork gen_to_be_invoked = (Networks.HjTcpNetwork)translator.FastGetCSObj(L, 1);



                {
                    byte[] _msgObj = LuaAPI.lua_tobytes(L, 2);

                    gen_to_be_invoked.SendMessage(_msgObj);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    int _maxBytesOnceSent = LuaAPI.xlua_tointeger(L, 2);
                    int _maxReceiveBuffer = LuaAPI.xlua_tointeger(L, 3);

                    var gen_ret = new Networks.HjTcpNetwork(_maxBytesOnceSent, _maxReceiveBuffer);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _maxBytesOnceSent = LuaAPI.xlua_tointeger(L, 2);

                    var gen_ret = new Networks.HjTcpNetwork(_maxBytesOnceSent);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new Networks.HjTcpNetwork();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to Networks.HjTcpNetwork constructor!"));
        }