diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-10-23 14:07:56 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-10-23 14:07:56 +0200 |
commit | fbfe8923ae50012d510b2c936e4ea8482ed252f2 (patch) | |
tree | 0669c5b8b66d0b8c2fa77959c9efe3cc891e4c16 /ACE/examples | |
parent | f330084b3ff87d778f5c2d9cb2bb86b1bebdb7fc (diff) | |
download | ATCD-fbfe8923ae50012d510b2c936e4ea8482ed252f2.tar.gz |
Minor layout changes
* ACE/apps/JAWS3/bench/rqfiles.cpp:
* ACE/examples/ASX/Event_Server/Transceiver/transceiver.h:
* ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h:
* ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp:
* ACE/netsvcs/lib/TS_Clerk_Handler.cpp:
Diffstat (limited to 'ACE/examples')
-rw-r--r-- | ACE/examples/ASX/Event_Server/Transceiver/transceiver.h | 34 | ||||
-rw-r--r-- | ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h | 1 | ||||
-rw-r--r-- | ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp | 3 |
3 files changed, 16 insertions, 22 deletions
diff --git a/ACE/examples/ASX/Event_Server/Transceiver/transceiver.h b/ACE/examples/ASX/Event_Server/Transceiver/transceiver.h index 7bd5dab056d..69a7cbe5f84 100644 --- a/ACE/examples/ASX/Event_Server/Transceiver/transceiver.h +++ b/ACE/examples/ASX/Event_Server/Transceiver/transceiver.h @@ -5,53 +5,51 @@ #include "ace/SOCK_Stream.h" #include "ace/Svc_Handler.h" +// Generate and receives messages from the event server. +// +// This class is both a consumer and supplier of events, i.e., +// it's a ``transceiver.'' class Event_Transceiver : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> { - // = TITLE - // Generate and receives messages from the event server. - // - // = DESCRIPTION - // This class is both a consumer and supplier of events, i.e., - // it's a ``transceiver.'' public: - Event_Transceiver (int argc, ACE_TCHAR *argv[]); // Performs the actual initialization. + Event_Transceiver (int argc, ACE_TCHAR *argv[]); - Event_Transceiver (void); // No-op constructor (required by the <ACE_Connector>). + Event_Transceiver (); // = Svc_Handler hook called by the <ACE_Connector>. - virtual int open (void *); // Initialize the transceiver when we are connected. + virtual int open (void *); // = Demultplexing hooks from the <ACE_Reactor>. - virtual int handle_input (ACE_HANDLE); // Receive data from STDIN or socket. + virtual int handle_input (ACE_HANDLE); - virtual int handle_signal (int signum, siginfo_t *, ucontext_t *); // Close down via SIGINT. + virtual int handle_signal (int signum, siginfo_t *, ucontext_t *); - virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask); // Close down the event loop. + virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask); private: - int receiver (void); // Reads data from socket and writes to ACE_STDOUT. + int receiver (); - int transmitter (void); // Writes data from ACE_STDIN to socket. + int transmitter (); - int parse_args (int argc, ACE_TCHAR *argv[]); // Parse the command-line arguments. + int parse_args (int argc, ACE_TCHAR *argv[]); - u_short port_number_; // Port number of event server. + u_short port_number_; - const ACE_TCHAR *host_name_; // Name of event server. + const ACE_TCHAR *host_name_; - const ACE_TCHAR *role_; // Are we playing the Consumer or Supplier role? + const ACE_TCHAR *role_; }; #endif /* ACE_TRANSCEIVER_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 6f40232d1f3..339daedd51b 100644 --- a/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h +++ b/ACE/examples/QOS/Change_Sender_TSpec/QoS_Signal_Handler.h @@ -34,4 +34,3 @@ private: }; #endif /* QOS_SIGNAL_HANDLER_H */ - diff --git a/ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp b/ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp index b9a043e823d..5ccb292680b 100644 --- a/ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp +++ b/ACE/examples/Reactor/WFMO_Reactor/Console_Input.cpp @@ -10,15 +10,12 @@ */ //============================================================================= - #include "ace/Reactor.h" #include "ace/OS_NS_unistd.h" #include "ace/OS_NS_string.h" #include "ace/OS_main.h" #include "ace/Log_Msg.h" - - class Event_Handler : public ACE_Event_Handler { public: |