summaryrefslogtreecommitdiff
path: root/src/modules/tcp_connect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/tcp_connect.lua')
-rw-r--r--src/modules/tcp_connect.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/tcp_connect.lua b/src/modules/tcp_connect.lua
index c5171ea..9150c21 100644
--- a/src/modules/tcp_connect.lua
+++ b/src/modules/tcp_connect.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>
@@ -56,7 +56,7 @@ function tcp_connect:new(config, runtype)
handle.in_buffer = ""
handle.out_buffer = ""
- function handle:read()
+ function handle:read()
-- TODO: which size should we request??
local buffer, err = tcp.recv(self.fd, 100)
if(buffer == nil) then
@@ -96,10 +96,10 @@ function tcp_connect:new(config, runtype)
client.name = inst.name .. "#0"
function client:process_response() end
function client:process_timeout() end
- function client:get_read_handles()
+ function client:get_read_handles()
return { handle }
end
- function client:get_write_handles()
+ function client:get_write_handles()
if(handle.out_buffer ~= "") then
return { handle }
else