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:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user