diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-24 13:32:13 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-24 13:32:13 +0000 |
commit | 6e3ca7c91ae325a2eaefe8b7b1b5636a91a06d04 (patch) | |
tree | 301fec054a49366ac910f2907466fde8054fa6f7 /ACE/examples/QOS | |
parent | b344c17ae152f6df1d1da81e3b2a68e131a86d49 (diff) | |
download | ATCD-6e3ca7c91ae325a2eaefe8b7b1b5636a91a06d04.tar.gz |
Thu Mar 24 13:26:32 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* examples/Bounded_Packet_Relay/BPR_Drivers.h:
* examples/Bounded_Packet_Relay/BPR_Drivers.cpp:
* examples/Bounded_Packet_Relay/BPR_Drivers_T.h:
* examples/Bounded_Packet_Relay/BPR_Drivers_T.cpp:
* examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.h:
* examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp:
* examples/Bounded_Packet_Relay/bpr_thread.cpp:
* examples/Connection/misc/Connection_Handler.cpp:
* examples/DLL/Magazine.h:
* examples/DLL/Newsweek.h:
* examples/DLL/Today.h:
* examples/IPC_SAP/UPIPE_SAP/ex1.cpp:
* examples/IPC_SAP/UPIPE_SAP/ex2.cpp:
* examples/IPC_SAP/UPIPE_SAP/ex3.cpp:
* examples/Log_Msg/test_callback.cpp:
* examples/Log_Msg/test_log_msg.cpp:
* examples/Log_Msg/test_ostream.cpp:
* examples/Logger/simple-server/Logging_Acceptor.h:
* examples/Logger/simple-server/Logging_Handler.h:
* examples/Logger/simple-server/Reactor_Singleton.h:
* examples/Misc/test_trace.cpp:
* examples/NT_Service/main.cpp:
* examples/NT_Service/ntsvc.h:
* examples/NT_Service/ntsvc.cpp:
* examples/OS/Process/imore.cpp:
* examples/OS/Process/process.cpp:
* examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.h:
* examples/QOS/Change_Receiver_FlowSpec/FlowSpec_Dbase.h:
* examples/QOS/Change_Receiver_FlowSpec/QoS_Signal_Handler.h:
* examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h:
* examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.h:
* examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.cpp:
* examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.h:
* examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp:
* examples/QOS/Change_Receiver_FlowSpec/receiver.cpp:
* examples/QOS/Change_Receiver_FlowSpec/sender.cpp:
* examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.h:
* examples/QOS/Change_Sender_TSpec/FlowSpec_Dbase.h:
* examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h:
* examples/QOS/Change_Sender_TSpec/QoS_Util.h:
* examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.h:
* examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.cpp:
* examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.h:
* examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp:
* examples/QOS/Change_Sender_TSpec/receiver.cpp:
* examples/QOS/Change_Sender_TSpec/sender.cpp:
* examples/QOS/Simple/Fill_ACE_QoS.h:
* examples/QOS/Simple/FlowSpec_Dbase.h:
* examples/QOS/Simple/QoS_Signal_Handler.h:
* examples/QOS/Simple/QoS_Util.h:
* examples/QOS/Simple/Receiver_QoS_Event_Handler.h:
* examples/QOS/Simple/Receiver_QoS_Event_Handler.cpp:
* examples/QOS/Simple/Sender_QoS_Event_Handler.h:
* examples/QOS/Simple/Sender_QoS_Event_Handler.cpp:
* examples/QOS/Simple/receiver.cpp:
* examples/QOS/Simple/sender.cpp:
* examples/Reactor/Misc/test_early_timeouts.cpp:
* examples/Reactor/Proactor/Aio_Platform_Test_C.cpp:
* examples/Reactor/Proactor/post_completions.cpp:
* examples/Reactor/Proactor/simple_test_proactor.cpp:
* examples/Reactor/Proactor/test_aiocb.cpp:
* examples/Reactor/Proactor/test_aiocb_ace.cpp:
* examples/Reactor/Proactor/test_aiosig.cpp:
* examples/Reactor/Proactor/test_aiosig_ace.cpp:
* examples/Reactor/Proactor/test_cancel.cpp:
* examples/Reactor/Proactor/test_end_event_loop.cpp:
* examples/Reactor/Proactor/test_multiple_loops.cpp:
* examples/Reactor/Proactor/test_proactor.cpp:
* examples/Reactor/Proactor/test_proactor2.cpp:
* examples/Reactor/Proactor/test_proactor3.cpp:
* examples/Reactor/Proactor/test_timeout.cpp:
* examples/Reactor/Proactor/test_timeout_st.cpp:
* examples/Reactor/Proactor/test_udp_proactor.cpp:
* examples/Reactor/WFMO_Reactor/APC.cpp:
* examples/Reactor/WFMO_Reactor/Abandoned.cpp:
* examples/Reactor/WFMO_Reactor/Console_Input.cpp:
* examples/Reactor/WFMO_Reactor/Directory_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Exceptions.cpp:
* examples/Reactor/WFMO_Reactor/Handle_Close.cpp:
* examples/Reactor/WFMO_Reactor/Multithreading.cpp:
* examples/Reactor/WFMO_Reactor/Network_Events.cpp:
* examples/Reactor/WFMO_Reactor/Prerun_State_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Registration.cpp:
* examples/Reactor/WFMO_Reactor/Registry_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Removals.cpp:
* examples/Reactor/WFMO_Reactor/Suspended_Removals.cpp:
* examples/Reactor/WFMO_Reactor/Talker.cpp:
* examples/Reactor/WFMO_Reactor/Timeouts.cpp:
* examples/Reactor/WFMO_Reactor/Window_Messages.cpp:
* examples/Service_Configurator/Misc/main.cpp:
* examples/Threads/TSS_Data.h:
* examples/Threads/TSS_Obj.h:
* examples/Threads/TSS_Task.h:
* examples/Threads/future1.cpp:
* examples/Threads/future2.cpp:
* examples/Threads/process_manager.cpp:
* examples/Threads/task_five.cpp:
* examples/Threads/tss1.cpp:
* examples/Threads/tss2.cpp:
* examples/Timer_Queue/Custom_Handler.h:
* examples/Timer_Queue/Custom_Handler.cpp:
* examples/Timer_Queue/Thread_Timer_Queue_Custom_Handler_Test.h:
* examples/Timer_Queue/Thread_Timer_Queue_Custom_Handler_Test.cpp:
* examples/Timer_Queue/main_thread_custom_handler.cpp:
* examples/Web_Crawler/Command_Processor.h:
* examples/Web_Crawler/HTTP_URL.h:
* examples/Web_Crawler/Iterators.h:
* examples/Web_Crawler/Mem_Map_Stream.h:
* examples/Web_Crawler/Options.h:
* examples/Web_Crawler/URL.h:
* examples/Web_Crawler/URL_Addr.h:
* examples/Web_Crawler/URL_Status.h:
* examples/Web_Crawler/URL_Visitor.h:
* examples/Web_Crawler/URL_Visitor_Factory.h:
* examples/Web_Crawler/Web_Crawler.h:
* examples/Web_Crawler/main.cpp:
Converted to doxygen style of documentation
Diffstat (limited to 'ACE/examples/QOS')
30 files changed, 465 insertions, 528 deletions
diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.h index cdc06cea422..204baf53b27 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Fill_ACE_QoS.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Fill_ACE_QoS.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FILL_ACE_QOS_H #define FILL_ACE_QOS_H @@ -24,41 +21,44 @@ #include "ace/ACE.h" #include "ace/OS_QoS.h" +/** + * @class Fill_ACE_QoS + TITLE + * This class helps users to add new flow specs and provides + * utility functions for filling up the flow specs for simplex/duplex + * sessions. + */ class Fill_ACE_QoS { - // TITLE - // This class helps users to add new flow specs and provides - // utility functions for filling up the flow specs for simplex/duplex - // sessions. public: typedef ACE_Hash_Map_Manager <ACE_CString, ACE_Flow_Spec *, ACE_Null_Mutex> FLOW_SPEC_HASH_MAP; //Initialization and termination methods. + /// constructor. Fill_ACE_QoS (void); - // constructor. + /// destructor. ~Fill_ACE_QoS (void); - // destructor. + /// To be used by receivers. Fills the receiver qos and sets the + /// sender qos to NO_TRAFFIC. int fill_simplex_receiver_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name); - // To be used by receivers. Fills the receiver qos and sets the - // sender qos to NO_TRAFFIC. + /// To be used by senders. Fills the sender qos and sets the receiver + /// qos to NO_TRAFFIC. int fill_simplex_sender_qos (ACE_QoS &ace_qos, const ACE_CString &send_flow_name); - // To be used by senders. Fills the sender qos and sets the receiver - // qos to NO_TRAFFIC. + /// To be used by applications that wish to be both receivers and + /// senders. int fill_duplex_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name, const ACE_CString &send_flow_name); - // To be used by applications that wish to be both receivers and - // senders. + /// Returns the hash map of flowspecs indexed by flowspec name. FLOW_SPEC_HASH_MAP& map (void); - // Returns the hash map of flowspecs indexed by flowspec name. private: diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/FlowSpec_Dbase.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/FlowSpec_Dbase.h index fc382048c13..5e3637c8455 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/FlowSpec_Dbase.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/FlowSpec_Dbase.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -//$Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// FlowSpec_Dbase.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file FlowSpec_Dbase.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FLOWSPEC_DBASE_H #define FLOWSPEC_DBASE_H diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Signal_Handler.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Signal_Handler.h index b2d4a0f40fa..3ded5c10ad3 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Signal_Handler.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Signal_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Signal_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Signal_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_SIGNAL_HANDLER_H #define QOS_SIGNAL_HANDLER_H @@ -20,24 +17,27 @@ #include "ace/Event_Handler.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Signal_Handler + TITLE + * This class Handles the SIGINT signal through the Reactor. + * Useful to gracefully release QoS sessions. + */ class QoS_Signal_Handler : public ACE_Event_Handler { - // TITLE - // This class Handles the SIGINT signal through the Reactor. - // Useful to gracefully release QoS sessions. public: + /// constructor. QoS_Signal_Handler (ACE_QoS_Session *qos_session); - // constructor. + /// Override this method to implement graceful shutdown. int handle_signal(int signum, siginfo_t*,ucontext_t*); - // Override this method to implement graceful shutdown. private: + /// Session to be gracefully shutdown. ACE_QoS_Session *qos_session_; - // Session to be gracefully shutdown. }; diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h index ae347de68f6..fbde23e3802 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Util.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Util.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_UTIL_H #define QOS_UTIL_H @@ -20,11 +17,14 @@ #include "ace/INET_Addr.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Util + * + * @brief This class provides the utility functions like parse_args () + * required by a QoS enabled application. + */ class QoS_Util { - // = TITLE - // This class provides the utility functions like parse_args () - // required by a QoS enabled application. public: diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.cpp index 220cfb3e53c..747b723034d 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Receiver_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.h index 900595a6778..35b6cd281ba 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Receiver_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef RECEIVER_QOS_EVENT_HANDLER_H #define RECEIVER_QOS_EVENT_HANDLER_H @@ -27,25 +24,25 @@ class Receiver_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Receiver_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Receiver_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Receiver_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a READ event. virtual int handle_input (ACE_HANDLE fd); - // Handles a READ event. + /// Handles a QoS event. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. private: ACE_SOCK_Dgram_Mcast_QoS dgram_mcast_qos_; diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp index af3e7dbdafd..69439455bb6 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Sender_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.h b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.h index e93ed52adae..55ff2415bf6 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/Sender_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef SENDER_QOS_EVENT_HANDLER_H #define SENDER_QOS_EVENT_HANDLER_H @@ -30,23 +27,23 @@ class Sender_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Sender_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Sender_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Sender_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a QoS event. Right now, just + /// prints a message. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. Right now, just - // prints a message. private: diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/receiver.cpp b/ACE/examples/QOS/Change_Receiver_FlowSpec/receiver.cpp index 9ef416308b0..1fb8fd69f23 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/receiver.cpp +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/receiver.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// server.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file receiver.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #define QOSEVENT_MAIN diff --git a/ACE/examples/QOS/Change_Receiver_FlowSpec/sender.cpp b/ACE/examples/QOS/Change_Receiver_FlowSpec/sender.cpp index 5aedacb3303..23121f4fe77 100644 --- a/ACE/examples/QOS/Change_Receiver_FlowSpec/sender.cpp +++ b/ACE/examples/QOS/Change_Receiver_FlowSpec/sender.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// client.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file sender.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "ace/QoS/QoS_Session.h" diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.h b/ACE/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.h index 776d713e5e5..79568dafb78 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Fill_ACE_QoS.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Fill_ACE_QoS.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FILL_ACE_QOS_H #define FILL_ACE_QOS_H @@ -23,41 +20,44 @@ #include "ace/ACE.h" #include "ace/OS_QoS.h" +/** + * @class Fill_ACE_QoS + TITLE + * This class helps users to add new flow specs and provides + * utility functions for filling up the flow specs for simplex/duplex + * sessions. + */ class Fill_ACE_QoS { - // TITLE - // This class helps users to add new flow specs and provides - // utility functions for filling up the flow specs for simplex/duplex - // sessions. public: typedef ACE_Hash_Map_Manager <ACE_CString, ACE_Flow_Spec *, ACE_Null_Mutex> FLOW_SPEC_HASH_MAP; //Initialization and termination methods. + /// constructor. Fill_ACE_QoS (void); - // constructor. + /// destructor. ~Fill_ACE_QoS (void); - // destructor. + /// To be used by receivers. Fills the receiver qos and sets the + /// sender qos to NO_TRAFFIC. int fill_simplex_receiver_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name); - // To be used by receivers. Fills the receiver qos and sets the - // sender qos to NO_TRAFFIC. + /// To be used by senders. Fills the sender qos and sets the receiver + /// qos to NO_TRAFFIC. int fill_simplex_sender_qos (ACE_QoS &ace_qos, const ACE_CString &send_flow_name); - // To be used by senders. Fills the sender qos and sets the receiver - // qos to NO_TRAFFIC. + /// To be used by applications that wish to be both receivers and + /// senders. int fill_duplex_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name, const ACE_CString &send_flow_name); - // To be used by applications that wish to be both receivers and - // senders. + /// Returns the hash map of flowspecs indexed by flowspec name. FLOW_SPEC_HASH_MAP& map (void); - // Returns the hash map of flowspecs indexed by flowspec name. private: diff --git a/ACE/examples/QOS/Change_Sender_TSpec/FlowSpec_Dbase.h b/ACE/examples/QOS/Change_Sender_TSpec/FlowSpec_Dbase.h index fc382048c13..5e3637c8455 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/FlowSpec_Dbase.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/FlowSpec_Dbase.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -//$Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// FlowSpec_Dbase.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file FlowSpec_Dbase.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FLOWSPEC_DBASE_H #define FLOWSPEC_DBASE_H diff --git a/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h b/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h index b2d4a0f40fa..3ded5c10ad3 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Signal_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Signal_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_SIGNAL_HANDLER_H #define QOS_SIGNAL_HANDLER_H @@ -20,24 +17,27 @@ #include "ace/Event_Handler.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Signal_Handler + TITLE + * This class Handles the SIGINT signal through the Reactor. + * Useful to gracefully release QoS sessions. + */ class QoS_Signal_Handler : public ACE_Event_Handler { - // TITLE - // This class Handles the SIGINT signal through the Reactor. - // Useful to gracefully release QoS sessions. public: + /// constructor. QoS_Signal_Handler (ACE_QoS_Session *qos_session); - // constructor. + /// Override this method to implement graceful shutdown. int handle_signal(int signum, siginfo_t*,ucontext_t*); - // Override this method to implement graceful shutdown. private: + /// Session to be gracefully shutdown. ACE_QoS_Session *qos_session_; - // Session to be gracefully shutdown. }; diff --git a/ACE/examples/QOS/Change_Sender_TSpec/QoS_Util.h b/ACE/examples/QOS/Change_Sender_TSpec/QoS_Util.h index ae347de68f6..fbde23e3802 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/QoS_Util.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/QoS_Util.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Util.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Util.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_UTIL_H #define QOS_UTIL_H @@ -20,11 +17,14 @@ #include "ace/INET_Addr.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Util + * + * @brief This class provides the utility functions like parse_args () + * required by a QoS enabled application. + */ class QoS_Util { - // = TITLE - // This class provides the utility functions like parse_args () - // required by a QoS enabled application. public: diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.cpp index bac4fc1f2a5..9b6011a6763 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Receiver_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.h b/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.h index 900595a6778..35b6cd281ba 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/Receiver_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef RECEIVER_QOS_EVENT_HANDLER_H #define RECEIVER_QOS_EVENT_HANDLER_H @@ -27,25 +24,25 @@ class Receiver_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Receiver_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Receiver_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Receiver_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a READ event. virtual int handle_input (ACE_HANDLE fd); - // Handles a READ event. + /// Handles a QoS event. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. private: ACE_SOCK_Dgram_Mcast_QoS dgram_mcast_qos_; diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp index c93d3f07904..7612a105051 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Sender_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.h b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.h index e93ed52adae..55ff2415bf6 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/Sender_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef SENDER_QOS_EVENT_HANDLER_H #define SENDER_QOS_EVENT_HANDLER_H @@ -30,23 +27,23 @@ class Sender_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Sender_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Sender_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Sender_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a QoS event. Right now, just + /// prints a message. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. Right now, just - // prints a message. private: diff --git a/ACE/examples/QOS/Change_Sender_TSpec/receiver.cpp b/ACE/examples/QOS/Change_Sender_TSpec/receiver.cpp index f329560dece..1d62b1134dd 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/receiver.cpp +++ b/ACE/examples/QOS/Change_Sender_TSpec/receiver.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// server.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file receiver.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #define QOSEVENT_MAIN diff --git a/ACE/examples/QOS/Change_Sender_TSpec/sender.cpp b/ACE/examples/QOS/Change_Sender_TSpec/sender.cpp index 1af380f90b3..6da7690a3b4 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/sender.cpp +++ b/ACE/examples/QOS/Change_Sender_TSpec/sender.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// client.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file sender.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "ace/QoS/QoS_Session.h" diff --git a/ACE/examples/QOS/Simple/Fill_ACE_QoS.h b/ACE/examples/QOS/Simple/Fill_ACE_QoS.h index 281b9beb876..86b7aed36f7 100644 --- a/ACE/examples/QOS/Simple/Fill_ACE_QoS.h +++ b/ACE/examples/QOS/Simple/Fill_ACE_QoS.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Fill_ACE_QoS.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Fill_ACE_QoS.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FILL_ACE_QOS_H #define FILL_ACE_QOS_H @@ -23,41 +20,44 @@ #include "ace/Null_Mutex.h" #include "ace/OS_QoS.h" +/** + * @class Fill_ACE_QoS + TITLE + * This class helps users to add new flow specs and provides + * utility functions for filling up the flow specs for simplex/duplex + * sessions. + */ class Fill_ACE_QoS { - // TITLE - // This class helps users to add new flow specs and provides - // utility functions for filling up the flow specs for simplex/duplex - // sessions. public: typedef ACE_Hash_Map_Manager <ACE_CString, ACE_Flow_Spec *, ACE_Null_Mutex> FLOW_SPEC_HASH_MAP; //Initialization and termination methods. + /// constructor. Fill_ACE_QoS (void); - // constructor. + /// destructor. ~Fill_ACE_QoS (void); - // destructor. + /// To be used by receivers. Fills the receiver qos and sets the + /// sender qos to NO_TRAFFIC. int fill_simplex_receiver_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name); - // To be used by receivers. Fills the receiver qos and sets the - // sender qos to NO_TRAFFIC. + /// To be used by senders. Fills the sender qos and sets the receiver + /// qos to NO_TRAFFIC. int fill_simplex_sender_qos (ACE_QoS &ace_qos, const ACE_CString &send_flow_name); - // To be used by senders. Fills the sender qos and sets the receiver - // qos to NO_TRAFFIC. + /// To be used by applications that wish to be both receivers and + /// senders. int fill_duplex_qos (ACE_QoS &ace_qos, const ACE_CString &recv_flow_name, const ACE_CString &send_flow_name); - // To be used by applications that wish to be both receivers and - // senders. + /// Returns the hash map of flowspecs indexed by flowspec name. FLOW_SPEC_HASH_MAP& map (void); - // Returns the hash map of flowspecs indexed by flowspec name. private: diff --git a/ACE/examples/QOS/Simple/FlowSpec_Dbase.h b/ACE/examples/QOS/Simple/FlowSpec_Dbase.h index fc382048c13..5e3637c8455 100644 --- a/ACE/examples/QOS/Simple/FlowSpec_Dbase.h +++ b/ACE/examples/QOS/Simple/FlowSpec_Dbase.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -//$Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// FlowSpec_Dbase.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file FlowSpec_Dbase.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef FLOWSPEC_DBASE_H #define FLOWSPEC_DBASE_H diff --git a/ACE/examples/QOS/Simple/QoS_Signal_Handler.h b/ACE/examples/QOS/Simple/QoS_Signal_Handler.h index b2d4a0f40fa..3ded5c10ad3 100644 --- a/ACE/examples/QOS/Simple/QoS_Signal_Handler.h +++ b/ACE/examples/QOS/Simple/QoS_Signal_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Signal_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Signal_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_SIGNAL_HANDLER_H #define QOS_SIGNAL_HANDLER_H @@ -20,24 +17,27 @@ #include "ace/Event_Handler.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Signal_Handler + TITLE + * This class Handles the SIGINT signal through the Reactor. + * Useful to gracefully release QoS sessions. + */ class QoS_Signal_Handler : public ACE_Event_Handler { - // TITLE - // This class Handles the SIGINT signal through the Reactor. - // Useful to gracefully release QoS sessions. public: + /// constructor. QoS_Signal_Handler (ACE_QoS_Session *qos_session); - // constructor. + /// Override this method to implement graceful shutdown. int handle_signal(int signum, siginfo_t*,ucontext_t*); - // Override this method to implement graceful shutdown. private: + /// Session to be gracefully shutdown. ACE_QoS_Session *qos_session_; - // Session to be gracefully shutdown. }; diff --git a/ACE/examples/QOS/Simple/QoS_Util.h b/ACE/examples/QOS/Simple/QoS_Util.h index ae347de68f6..fbde23e3802 100644 --- a/ACE/examples/QOS/Simple/QoS_Util.h +++ b/ACE/examples/QOS/Simple/QoS_Util.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ===================================================================== -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// QoS_Util.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ===================================================================== + +//============================================================================= +/** + * @file QoS_Util.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef QOS_UTIL_H #define QOS_UTIL_H @@ -20,11 +17,14 @@ #include "ace/INET_Addr.h" #include "ace/QoS/QoS_Session.h" +/** + * @class QoS_Util + * + * @brief This class provides the utility functions like parse_args () + * required by a QoS enabled application. + */ class QoS_Util { - // = TITLE - // This class provides the utility functions like parse_args () - // required by a QoS enabled application. public: diff --git a/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.cpp b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.cpp index 69258313420..04262b2fcb2 100644 --- a/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Receiver_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h index 900595a6778..35b6cd281ba 100644 --- a/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Simple/Receiver_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Receiver_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Receiver_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef RECEIVER_QOS_EVENT_HANDLER_H #define RECEIVER_QOS_EVENT_HANDLER_H @@ -27,25 +24,25 @@ class Receiver_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Receiver_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Receiver_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Receiver_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a READ event. virtual int handle_input (ACE_HANDLE fd); - // Handles a READ event. + /// Handles a QoS event. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. private: ACE_SOCK_Dgram_Mcast_QoS dgram_mcast_qos_; diff --git a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp index a1a8f42bbd9..fa4e49f7e34 100644 --- a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp +++ b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "Sender_QoS_Event_Handler.h" #include "ace/Log_Msg.h" diff --git a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.h b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.h index e93ed52adae..55ff2415bf6 100644 --- a/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.h +++ b/ACE/examples/QOS/Simple/Sender_QoS_Event_Handler.h @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// Sender_QoS_Event_Handler.h -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file Sender_QoS_Event_Handler.h + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #ifndef SENDER_QOS_EVENT_HANDLER_H #define SENDER_QOS_EVENT_HANDLER_H @@ -30,23 +27,23 @@ class Sender_QoS_Event_Handler : public ACE_Event_Handler { public: // = Initialization and Termination methods. + /// Constructor. Sender_QoS_Event_Handler (void); - // Constructor. + /// Constructor. Sender_QoS_Event_Handler (const ACE_SOCK_Dgram_Mcast_QoS &dgram_mcast_qos, ACE_QoS_Session *qos_session); - // Constructor. + /// Destructor. ~Sender_QoS_Event_Handler (void); - // Destructor. + /// Override this to return the handle of the Dgram_Mcast + /// that we are using. virtual ACE_HANDLE get_handle (void) const; - // Override this to return the handle of the Dgram_Mcast - // that we are using. + /// Handles a QoS event. Right now, just + /// prints a message. virtual int handle_qos (ACE_HANDLE fd); - // Handles a QoS event. Right now, just - // prints a message. private: diff --git a/ACE/examples/QOS/Simple/receiver.cpp b/ACE/examples/QOS/Simple/receiver.cpp index cba39f779e1..d9f89397866 100644 --- a/ACE/examples/QOS/Simple/receiver.cpp +++ b/ACE/examples/QOS/Simple/receiver.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// server.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file receiver.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #define QOSEVENT_MAIN diff --git a/ACE/examples/QOS/Simple/sender.cpp b/ACE/examples/QOS/Simple/sender.cpp index 43684703be5..c04508a5664 100644 --- a/ACE/examples/QOS/Simple/sender.cpp +++ b/ACE/examples/QOS/Simple/sender.cpp @@ -1,18 +1,15 @@ /* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ACE_wrappers/examples/QOS -// -// = FILENAME -// client.cpp -// -// = AUTHOR -// Vishal Kachroo <vishal@cs.wustl.edu> -// -// ============================================================================ + +//============================================================================= +/** + * @file sender.cpp + * + * $Id$ + * + * @author Vishal Kachroo <vishal@cs.wustl.edu> + */ +//============================================================================= + #include "ace/QoS/QoS_Session.h" |