-- EFL LuaJIT bindings: efl_network_client.eo (class Efl.Network.Client)
-- For use with Elua; automatically generated, do not modify

local cutil = require("cutil")
local util  = require("util")
local ffi   = require("ffi")
local eo    = require("eo")

local M, __lib = ...

local __class
local __body

local init = function()
    __class = __lib.efl_network_client_class_get()
    eo.class_register("Efl_Network_Client", {"Efl_Network"}, nil, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *efl_network_client_class_get(void);
    Efl_Network_Server *efl_network_client_obj_server_get(void);
]]

local __M = util.get_namespace(M, { "network" })
__body = {
    __eo_ctor = function(self, __func)
        if __func then __func() end
    end,

    server_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_network_client_obj_server_get()
        eo.__do_end()
        return v
    end,

    __properties = {
        ["server"] = { 0, 0, 1, 0, true, false }
    }
}

__M.Client = function(parent, ...)
    return eo.__ctor_common(__class, parent, eo.class_get("Efl_Network_Client").__eo_ctor,
                            1, ...)
end

return M
