_peer_t Struct Reference

#include <peer.h>


Detailed Description

Peer data structure.

Definition at line 109 of file peer.h.

Data Fields

str fqdn
 FQDN of the peer.
str realm
 Realm of the peer.
int port
 TCP Port of the peer.
app_configapplications
 list of supported applications
int applications_cnt
 size of list of supporter applications
gen_lock_t * lock
 lock for operations with this peer
peer_state_t state
 state of the peer
int I_sock
 socket used as initiator
int R_sock
 socket used as receiver
time_t activity
 timestamp of last activity
int is_dynamic
 whether this peer was accepted although it was not initially configured
int waitingDWA
 if a Diameter Watch-dog Request was sent out and waiting for an answer
str send_pipe
 pipe to send out messages
_peer_tnext
 next peer in the peer list
_peer_tprev
 previous peer in the peer list


Field Documentation

str _peer_t::fqdn

FQDN of the peer.

Definition at line 110 of file peer.h.

Referenced by AAASendMessage(), AAASendRecvMessage(), free_peer(), get_peer_by_fqdn(), get_peer_from_fqdn(), I_Snd_Conn_Req(), log_peer_list(), new_peer(), peer_connect(), peer_send_msg(), peer_timer(), and sm_process().

str _peer_t::realm

Realm of the peer.

Definition at line 111 of file peer.h.

Referenced by free_peer(), and new_peer().

int _peer_t::port

TCP Port of the peer.

Definition at line 112 of file peer.h.

Referenced by log_peer_list(), new_peer(), and peer_connect().

app_config* _peer_t::applications

list of supported applications

Definition at line 114 of file peer.h.

Referenced by add_peer_application(), log_peer_list(), peer_handles_application(), and save_peer_applications().

int _peer_t::applications_cnt

size of list of supporter applications

Definition at line 115 of file peer.h.

Referenced by add_peer_application(), log_peer_list(), peer_handles_application(), and save_peer_applications().

gen_lock_t* _peer_t::lock

lock for operations with this peer

Definition at line 117 of file peer.h.

Referenced by free_peer(), new_peer(), peer_send(), peer_timer(), receiver_process(), and sm_process().

peer_state_t _peer_t::state

state of the peer

Definition at line 119 of file peer.h.

Referenced by AAASendMessage(), AAASendMessageToPeer(), AAASendRecvMessage(), AAASendRecvMessageToPeer(), get_first_connected_route(), get_routing_peer(), log_peer_list(), new_peer(), peer_timer(), receive_message(), sm_process(), Snd_DPR(), and Snd_DWR().

int _peer_t::I_sock

socket used as initiator

Definition at line 120 of file peer.h.

Referenced by Cleanup(), get_peer_from_sock(), I_Disc(), I_Snd_CER(), I_Snd_Conn_Req(), new_peer(), peer_manager_destroy(), peer_send(), receive_loop(), and sm_process().

int _peer_t::R_sock

socket used as receiver

Definition at line 121 of file peer.h.

Referenced by Cleanup(), get_peer_from_sock(), new_peer(), peer_manager_destroy(), R_Accept(), R_Disc(), and sm_process().

time_t _peer_t::activity

timestamp of last activity

Definition at line 123 of file peer.h.

Referenced by new_peer(), peer_timer(), and touch_peer().

int _peer_t::is_dynamic

whether this peer was accepted although it was not initially configured

Definition at line 124 of file peer.h.

Referenced by get_peer_from_fqdn(), log_peer_list(), peer_manager_init(), and peer_timer().

int _peer_t::waitingDWA

if a Diameter Watch-dog Request was sent out and waiting for an answer

Definition at line 125 of file peer.h.

Referenced by peer_timer(), and Process_DWA().

str _peer_t::send_pipe

pipe to send out messages

Definition at line 127 of file peer.h.

Referenced by peer_send_msg(), receiver_process(), and set_peer_pipe().

struct _peer_t* _peer_t::next [read]

next peer in the peer list

Definition at line 128 of file peer.h.

Referenced by add_peer(), get_peer_by_fqdn(), get_peer_from_fqdn(), get_peer_from_sock(), log_peer_list(), new_peer(), peer_manager_destroy(), peer_timer(), and remove_peer().

struct _peer_t* _peer_t::prev [read]

previous peer in the peer list

Definition at line 129 of file peer.h.

Referenced by add_peer(), new_peer(), and remove_peer().


The documentation for this struct was generated from the following file:
Generated on Thu Oct 23 04:14:46 2008 for Open IMS Core CSCFs by  doxygen 1.5.2