diff options
Diffstat (limited to 'src/modules/stdout.lua')
-rw-r--r-- | src/modules/stdout.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/stdout.lua b/src/modules/stdout.lua index c8231bb..1ae48fe 100644 --- a/src/modules/stdout.lua +++ b/src/modules/stdout.lua @@ -1,15 +1,15 @@ -- -- gcsd -- --- gcsd the generic command sequencer daemon can be used to serialize +-- gcsd the generic command sequencer daemon can be used to serialize -- commands sent over various paralell communication channels to a -- single command output. It can be seen as a multiplexer for any -- kind of communication between a single resource and various clients -- which want to submit commands to it or query information from it. --- gcsd is written in C and Lua. The goal is to provide an easy to +-- gcsd is written in C and Lua. The goal is to provide an easy to -- understand high level API based on Lua which can be used to -- implement the business logic of the so formed multiplexer daemon. --- +-- -- -- Copyright (C) 2009-2010 Markus Grueneis <gimpf@spreadspace.org> -- Christian Pointner <equinox@spreadspace.org> @@ -58,21 +58,21 @@ function stdout:new(config, runtype) log.printf(log.INFO, inst.name .. ": connection error: %s", err) return defines.KILL_MODULE_CLASS end - + self.out_buffer = string.sub(self.out_buffer, len+1) if(self.out_buffer == "") then command_queue:command_sent() end return defines.OK end - + local client = {} client.module_instance = inst client.name = inst.name .. "#0" function client:process_response() end function client:process_timeout() end function client:get_read_handles() return {} end - function client:get_write_handles() + function client:get_write_handles() if(handle.out_buffer ~= "") then return { handle } else |