25 lines
543 B
Lua
25 lines
543 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 CLIENT");
|
|
return OCT_TYPE_SERVER, OCT_NOT_NEEDS_TERMBOX;
|
|
end
|
|
|
|
counter = 0;
|
|
function oct_loop(key)
|
|
if counter == 1000000 then
|
|
oct_send("Hello!", "127.0.0.1", "1234");
|
|
counter = 0;
|
|
end
|
|
counter = counter + 1;
|
|
--msg,addr,port = oct_recv();
|
|
end
|