diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-21 17:08:57 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-21 17:08:57 +0000 |
| commit | 9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a (patch) | |
| tree | 862034cc30fef482378e6d8447ba5521885352eb /PICA_node.h | |
| parent | 255f83d5109d7ddeab1c9a343292f2cfbcf10651 (diff) | |
| download | pica-pica-9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a.tar.gz pica-pica-9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a.zip | |
pica-node modified to handle new id format, new files PICA_id.c PICA_id.h containing functions for working with id
git-svn-id: svn://localhost/project_picapica/trunk@263 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_node.h')
| -rwxr-xr-x | PICA_node.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/PICA_node.h b/PICA_node.h index efedcb9..93c3413 100755 --- a/PICA_node.h +++ b/PICA_node.h @@ -30,9 +30,11 @@ #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/rand.h> +#include <openssl/sha.h> #include <time.h> #include "PICA_nodeaddrlist.h" +#include "PICA_id.h" #define PICA_COMM_PORT 51914 @@ -71,11 +73,12 @@ #define DEFAULT_BUF_SIZE 4096 + struct nodelink; struct client { -unsigned int id; +unsigned char id[PICA_ID_SIZE]; struct client *up; struct client *left; struct client *right; @@ -109,8 +112,8 @@ time_t tmst; struct client *p1;//caller struct client *p2;//callee -unsigned int caller_id; -unsigned int callee_id; +unsigned char *caller_id; +unsigned char *callee_id; struct nodelink *caller_node; struct nodelink *callee_node; |
