static int get_connected(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket obj = (ShibaInu.TcpSocket)o;
            bool ret = obj.connected;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index connected on a nil value"));
        }
    }
    static int get_port(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket obj = (ShibaInu.TcpSocket)o;
            int ret = obj.port;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index port on a nil value"));
        }
    }
    static int get_host(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket obj = (ShibaInu.TcpSocket)o;
            string             ret = obj.host;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index host on a nil value"));
        }
    }
    static int get_msgProtocol(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket    obj = (ShibaInu.TcpSocket)o;
            ShibaInu.IMsgProtocol ret = obj.msgProtocol;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index msgProtocol on a nil value"));
        }
    }
    static int get_callback(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket             obj = (ShibaInu.TcpSocket)o;
            System.Action <string, object> ret = obj.callback;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index callback on a nil value"));
        }
    }
    static int get_luaTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.TcpSocket    obj = (ShibaInu.TcpSocket)o;
            LuaInterface.LuaTable ret = obj.luaTarget;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaTarget on a nil value"));
        }
    }
    static int _CreateShibaInu_TcpSocket(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                ShibaInu.TcpSocket obj = new ShibaInu.TcpSocket();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ShibaInu.TcpSocket.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }