mfea_client_xif.hh
来自「BCAST Implementation for NS2」· HH 代码 · 共 630 行 · 第 1/2 页
HH
630 行
const vector<uint8_t>& protocol_message, const RecvKernelSignalMessage6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddMrib4CB; /** * Send Xrl intended to: * * Add Multicast Routing Information Base information. * * @param tgt_name Xrl Target name * * @param xrl_sender_name the XRL name of the originator of this XRL. * * @param dest_prefix the destination prefix to add. * * @param next_hop_router_addr the address of the next-hop router toward * the destination prefix. * * @param next_hop_vif_name the name of the vif toward the destination * prefix. * * @param next_hop_vif_index the index of the vif toward the destination * prefix. * * @param metric_preference the metric preference for this entry. * * @param metric the metric for this entry. */ bool send_add_mrib4( const char* target_name, const string& xrl_sender_name, const IPv4Net& dest_prefix, const IPv4& next_hop_router_addr, const string& next_hop_vif_name, const uint32_t& next_hop_vif_index, const uint32_t& metric_preference, const uint32_t& metric, const AddMrib4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr AddMrib6CB; bool send_add_mrib6( const char* target_name, const string& xrl_sender_name, const IPv6Net& dest_prefix, const IPv6& next_hop_router_addr, const string& next_hop_vif_name, const uint32_t& next_hop_vif_index, const uint32_t& metric_preference, const uint32_t& metric, const AddMrib6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteMrib4CB; /** * Send Xrl intended to: * * Delete Multicast Routing Information Base information. * * @param tgt_name Xrl Target name * * @param xrl_sender_name the XRL name of the originator of this XRL. * * @param dest_prefix the destination prefix to delete. */ bool send_delete_mrib4( const char* target_name, const string& xrl_sender_name, const IPv4Net& dest_prefix, const DeleteMrib4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteMrib6CB; bool send_delete_mrib6( const char* target_name, const string& xrl_sender_name, const IPv6Net& dest_prefix, const DeleteMrib6CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr SetMribDoneCB; /** * Send Xrl intended to: * * Complete a transaction with MRIB information. * * @param tgt_name Xrl Target name * * @param xrl_sender_name the XRL name of the originator of this XRL. */ bool send_set_mrib_done( const char* target_name, const string& xrl_sender_name, const SetMribDoneCB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr RecvDataflowSignal4CB; /** * Send Xrl intended to: * * A signal that a dataflow-related pre-condition is true. * * @param tgt_name Xrl Target name * * @param xrl_sender_name the XRL name of the originator of this XRL. * * @param source_address the source address of the dataflow. * * @param group_address the group address of the dataflow. * * @param threshold_interval_sec the number of seconds in the interval * requested for measurement. * * @param threshold_interval_usec the number of microseconds in the * interval requested for measurement. * * @param measured_interval_sec the number of seconds in the last measured * interval that has triggered the signal. * * @param measured_interval_usec the number of microseconds in the last * measured interval that has triggered the signal. * * @param threshold_packets the threshold value to trigger a signal (in * number of packets). * * @param threshold_bytes the threshold value to trigger a signal (in * bytes). * * @param measured_packets the number of packets measured within the * measured interval. * * @param measured_bytes the number of bytes measured within the measured * interval. * * @param is_threshold_in_packets if true, threshold_packets is valid. * * @param is_threshold_in_bytes if true, threshold_bytes is valid. * * @param is_geq_upcall if true, the operation for comparison is ">=". * * @param is_leq_upcall if true, the operation for comparison is "<=". */ bool send_recv_dataflow_signal4( const char* target_name, const string& xrl_sender_name, const IPv4& source_address, const IPv4& group_address, const uint32_t& threshold_interval_sec, const uint32_t& threshold_interval_usec, const uint32_t& measured_interval_sec, const uint32_t& measured_interval_usec, const uint32_t& threshold_packets, const uint32_t& threshold_bytes, const uint32_t& measured_packets, const uint32_t& measured_bytes, const bool& is_threshold_in_packets, const bool& is_threshold_in_bytes, const bool& is_geq_upcall, const bool& is_leq_upcall, const RecvDataflowSignal4CB& cb ); typedef XorpCallback1<void, const XrlError&>::RefPtr RecvDataflowSignal6CB; bool send_recv_dataflow_signal6( const char* target_name, const string& xrl_sender_name, const IPv6& source_address, const IPv6& group_address, const uint32_t& threshold_interval_sec, const uint32_t& threshold_interval_usec, const uint32_t& measured_interval_sec, const uint32_t& measured_interval_usec, const uint32_t& threshold_packets, const uint32_t& threshold_bytes, const uint32_t& measured_packets, const uint32_t& measured_bytes, const bool& is_threshold_in_packets, const bool& is_threshold_in_bytes, const bool& is_geq_upcall, const bool& is_leq_upcall, const RecvDataflowSignal6CB& cb );protected: XrlSender* _sender;private: void unmarshall_new_vif( const XrlError& e, XrlArgs* a, NewVifCB cb ); void unmarshall_delete_vif( const XrlError& e, XrlArgs* a, DeleteVifCB cb ); void unmarshall_add_vif_addr4( const XrlError& e, XrlArgs* a, AddVifAddr4CB cb ); void unmarshall_add_vif_addr6( const XrlError& e, XrlArgs* a, AddVifAddr6CB cb ); void unmarshall_delete_vif_addr4( const XrlError& e, XrlArgs* a, DeleteVifAddr4CB cb ); void unmarshall_delete_vif_addr6( const XrlError& e, XrlArgs* a, DeleteVifAddr6CB cb ); void unmarshall_set_vif_flags( const XrlError& e, XrlArgs* a, SetVifFlagsCB cb ); void unmarshall_set_all_vifs_done( const XrlError& e, XrlArgs* a, SetAllVifsDoneCB cb ); void unmarshall_is_vif_setup_completed( const XrlError& e, XrlArgs* a, IsVifSetupCompletedCB cb ); void unmarshall_recv_protocol_message4( const XrlError& e, XrlArgs* a, RecvProtocolMessage4CB cb ); void unmarshall_recv_protocol_message6( const XrlError& e, XrlArgs* a, RecvProtocolMessage6CB cb ); void unmarshall_recv_kernel_signal_message4( const XrlError& e, XrlArgs* a, RecvKernelSignalMessage4CB cb ); void unmarshall_recv_kernel_signal_message6( const XrlError& e, XrlArgs* a, RecvKernelSignalMessage6CB cb ); void unmarshall_add_mrib4( const XrlError& e, XrlArgs* a, AddMrib4CB cb ); void unmarshall_add_mrib6( const XrlError& e, XrlArgs* a, AddMrib6CB cb ); void unmarshall_delete_mrib4( const XrlError& e, XrlArgs* a, DeleteMrib4CB cb ); void unmarshall_delete_mrib6( const XrlError& e, XrlArgs* a, DeleteMrib6CB cb ); void unmarshall_set_mrib_done( const XrlError& e, XrlArgs* a, SetMribDoneCB cb ); void unmarshall_recv_dataflow_signal4( const XrlError& e, XrlArgs* a, RecvDataflowSignal4CB cb ); void unmarshall_recv_dataflow_signal6( const XrlError& e, XrlArgs* a, RecvDataflowSignal6CB cb );};#endif /* __XRL_INTERFACES_MFEA_CLIENT_XIF_HH__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?