peermanager.h

Go to the documentation of this file.
00001 
00055 #ifndef __MANAGER_H
00056 #define __MANAGER_H
00057 
00058 
00059 #include "utils.h"
00060 #include "diameter.h"
00061 #include "peer.h"
00062 #include "config.h"
00063 
00065 typedef struct {
00066     peer *head; 
00067     peer *tail; 
00068 } peer_list_t;
00069 
00070 int peer_manager_init(dp_config *config);
00071 
00072 void peer_manager_destroy();
00073 
00074 void log_peer_list(int level);
00075 
00076 void add_peer(peer *p);
00077 
00078 void remove_peer(peer *p);
00079 
00080 peer *get_peer_from_sock(int sock);
00081 
00082 peer *get_peer_from_fqdn(str fqdn,str realm);
00083 
00084 peer *get_peer_by_fqdn(str *fqdn);
00085 
00086 void peer_timer(time_t now,void *ptr);
00087 
00088 AAAMsgIdentifier next_hopbyhop();
00089 AAAMsgIdentifier next_endtoend();
00090 
00091 
00092 #endif

Generated on Sat Sep 6 04:17:47 2008 for Open IMS Core CSCFs by  doxygen 1.5.2