Functions to get conn by session ID.

FossilOrigin-Name: 7c99abc44308c62f551283f93ecde1e36ed2d3033f3ff86d9e2a44e37291ddcd
This commit is contained in:
7u83@mail.ru
2016-04-10 13:54:25 +00:00
parent fb6d890745
commit 871822c613
2 changed files with 42 additions and 13 deletions

View File

@ -8,7 +8,10 @@
struct connlist {
/* struct conn ** connlist; */
struct mavl *t;
struct mavl *by_addr;
struct mavl *by_session_id;
int len;
pthread_mutex_t connlist_mutex;
};
@ -23,4 +26,7 @@ struct conn *connlist_add(struct connlist *cl, struct conn *conn);
void connlist_remove(struct connlist *cl, struct conn *conn);
void connlist_destroy(struct connlist *cl);
struct conn * connlist_get_by_session_id(struct connlist *cl, struct conn * conn);
struct conn * connlist_add_by_session_id(struct connlist * cl, struct conn * conn);
#endif