diff options
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r-- | src/main_loop.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index e202087..b7dd5af 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -36,10 +36,10 @@ function main_loop(opt) local sig = signal.init() local sock = {} - sock[1] = echo_server_init("localhost", 4500) + sock[1] = echo_server.init("localhost", 4500) if(sock[1] == nil) then return -1 end - sock[2] = echo_server_init("localhost", 10000) + sock[2] = echo_server.init("localhost", 10000) if(sock[2] == nil) then return -1 end local return_value = 0 @@ -54,7 +54,7 @@ function main_loop(opt) return_value = signal.handle() if(return_value == 1) then break end else - return_value = echo_server_recv(input) + return_value = echo_server.handle(input) if(return_value == 2) then break end end end |