diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-12-28 03:19:57 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-12-28 03:19:57 +0000 |
commit | 2ff79c65051ceb468ee0a48c732a2a496a525bda (patch) | |
tree | 7902564d5149b7d66fa3585962f3a2ca5bd9f015 /src/main_loop.lua | |
parent | added default port number to tcp_listen (diff) |
added tcp.client and tcp.connect
added tcp_connect module
some cleanup and small fixes
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@85 ac14a137-c7f1-4531-abe0-07747231d213
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r-- | src/main_loop.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index f1712d9..84afa01 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -50,14 +50,14 @@ function get_readables() end function get_writeables() - local writeables = { } + local writeables = {} for _, module in ipairs(module_list.inputs) do for _, fd in ipairs(module:get_write_handles()) do table.insert(writeables, fd) end end for _, fd in ipairs(module_list.output.get_write_handles()) do - table.insert(readables, fd) + table.insert(writeables, fd) end for _, client in ipairs(client_list.clients) do for _, fd in ipairs(client:get_write_handles()) do |