1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-23 21:30:09 +00:00
Laika/shell/include/speer.h

21 lines
535 B
C
Raw Normal View History

#ifndef SHELLPEER_H
#define SHELLPEER_H
2022-09-02 01:00:37 +00:00
#include "core/lsodium.h"
#include "net/lpeer.h"
typedef struct sShell_peer
{
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
char hostname[LAIKA_HOSTNAME_LEN], inet[LAIKA_INET_LEN], ipStr[LAIKA_IPSTR_LEN];
PEERTYPE type;
OSTYPE osType;
} tShell_peer;
tShell_peer *shellP_newPeer(PEERTYPE type, OSTYPE osType, uint8_t *pub, char *hostname, char *inet,
char *ipStr);
void shellP_freePeer(tShell_peer *peer);
void shellP_printInfo(tShell_peer *peer);
#endif