22 lines
490 B
Lua
22 lines
490 B
Lua
-- Make sure to run open_card_table with -ll 3 to see output
|
|
|
|
require("oct_utils")
|
|
require("termbox_defs")
|
|
|
|
text = oct_tb_sprite_new();
|
|
|
|
function oct_init()
|
|
-- text["shape"] = "THIS IS A TEST SERVER";
|
|
-- text["x"] = 50;
|
|
-- text["y"] = 10;
|
|
OCT_LOG_INFO("THIS IS A TEST SERVER");
|
|
return OCT_NEEDS_NETWORKING, OCT_NOT_NEEDS_TERMBOX;
|
|
end
|
|
|
|
function oct_loop(key)
|
|
msg,addr,port = oct_recv();
|
|
if (msg ~= "") then
|
|
OCT_LOG_INFO(msg .. " " .. addr .. " " .. port);
|
|
end
|
|
end
|