Open anzhdanov opened 9 years ago
//a list of clients struct ClientList* cl_head; struct ClientList* cl_tail; See above: instead of having your one "global" nc, you should create one per group! That way, you can probably eliminate most group membership operations you have here.
struct Client { //a list of groups You should say explicitly that these are the groups this client is subscribed to. Can there really be more than one? Does your client-API even allow this? Or can we get rid of the DLL? struct GroupList* gl_head; struct GroupList* gl_tail; /**
- Public key of the client _/ struct GNUNET_CRYPTO_EddsaPublicKey pubkey; /*
- Hash of the public key _/ struct GNUNET_HashCode pub_keyhash; /*
- Private key of the client */ struct GNUNET_CRYPTO_EddsaPrivateKey priv_key; };