26 lines
643 B
Lua
26 lines
643 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_NEEDS_NETWORKING, OCT_NOT_NEEDS_TERMBOX;
|
|
end
|
|
|
|
counter = 0;
|
|
function oct_loop(key)
|
|
if counter == 10000000 then
|
|
oct_send("First message!\nnewline\nnewline\nnewline", "127.0.0.1", "1234");
|
|
oct_send("Second message!\nhey!", "127.0.0.1", "1234");
|
|
counter = 0;
|
|
end
|
|
counter = counter + 1;
|
|
--msg,addr,port = oct_recv();
|
|
end
|