lk.Inlet
:url ()
local lib = {type='lk.Inlet'} lib.__index = lib lk.Inlet = lib
setmetatable(lib, { -- lk.Inlet(node) __call = function(lib, ...) return lib.new(...) end })
-- Create a new inlet local self if type(node) == 'string' then -- Pending inlet. self = setmetatable({ name = name, target_url = node, }, lib) else self = setmetatable({ name = name, }, lib) self:setNode(node) end
return self end
print('Inlet function not set.') end
-- This is called when a pending inlet becomes real. -- Pending becomes real. -- FIXME: receive "connect" message ? self.target_url = nil self.node = node end
return { name = self.name, } end