Functions to get conn by session ID.
FossilOrigin-Name: 7c99abc44308c62f551283f93ecde1e36ed2d3033f3ff86d9e2a44e37291ddcd
This commit is contained in:
		@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user