summaryrefslogtreecommitdiff
path: root/src/modules/tcp_listen.lua
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-29 12:24:43 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-29 12:24:43 +0000
commit8edc1eccac63fbe2fcb7d7e3eab76cb8646df9a4 (patch)
treee18163715804d1eddedc9d4f1fb60a221a535fe6 /src/modules/tcp_listen.lua
parentyet another trailing whitespace deletion (diff)
requester gets now stored with commands
response and timeout handlers get called now git-svn-id: https://svn.spreadspace.org/gcsd/trunk@91 ac14a137-c7f1-4531-abe0-07747231d213
Diffstat (limited to 'src/modules/tcp_listen.lua')
-rw-r--r--src/modules/tcp_listen.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/tcp_listen.lua b/src/modules/tcp_listen.lua
index 09f3400..aabb5be 100644
--- a/src/modules/tcp_listen.lua
+++ b/src/modules/tcp_listen.lua
@@ -85,7 +85,7 @@ function tcp_listen:new(config, runtype)
self.in_buffer = self.in_buffer .. buffer
if(inst.config.runtype == defines.IN_MODULE) then
- self.in_buffer = command_table:dispatch(self.in_buffer)
+ self.in_buffer = command_table:dispatch(self.in_buffer, self.client_instance)
else
self.in_buffer = response_table:dispatch(self.in_buffer)
end
@@ -110,7 +110,7 @@ function tcp_listen:new(config, runtype)
client.module_instance = inst
client.addr = addr
client.name = inst.name .. "#" .. tcp.endtostring(addr)
- function client:process_response() end
+ function client:process_response(response) end
function client:process_timeout() end
function client:get_read_handles()
return { client_handle }