open-card-table/test_client.lua

26 lines
609 B
Lua
Raw Normal View History

2023-05-27 17:28:19 -04:00
-- 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_NEEDS_NETWORKING, OCT_NOT_NEEDS_TERMBOX;
2023-05-27 17:28:19 -04:00
end
counter = 0;
function oct_loop(key)
if counter == 1000000 then
oct_send("First message!", "127.0.0.1", "1234");
oct_send("Second message!", "127.0.0.1", "1234");
2023-05-27 17:28:19 -04:00
counter = 0;
end
counter = counter + 1;
--msg,addr,port = oct_recv();
end