diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-24 23:25:58 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-24 23:25:58 +0000 |
commit | ae3742d1d6afe6974dfb95acab3b7b99776f30a4 (patch) | |
tree | 12679470148b109564cc28a52fa7aeb5732f5b00 /ace/Event_Handler.cpp | |
parent | 1d68bf26a8df9cf5b878a2070ab7d82e966eabc9 (diff) | |
download | ATCD-ae3742d1d6afe6974dfb95acab3b7b99776f30a4.tar.gz |
Done
Diffstat (limited to 'ace/Event_Handler.cpp')
-rw-r--r-- | ace/Event_Handler.cpp | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/ace/Event_Handler.cpp b/ace/Event_Handler.cpp index c0cc76fbd09..e23bfb231f4 100644 --- a/ace/Event_Handler.cpp +++ b/ace/Event_Handler.cpp @@ -9,3 +9,175 @@ #include "ace/Event_Handler.i" #endif /* __ACE_INLINE__ */ +// Implement conceptually abstract virtual functions in the base class +// so derived classes don't have to implement unused ones. + +ACE_Event_Handler::ACE_Event_Handler (void) + : priority_ (ACE_Event_Handler::LO_PRIORITY), + reactor_ (0), + reactorex_ (0), + proactor_ (0) +{ + ACE_TRACE ("ACE_Event_Handler::ACE_Event_Handler"); +} + +ACE_Event_Handler::~ACE_Event_Handler (void) +{ + ACE_TRACE ("ACE_Event_Handler::~ACE_Event_Handler"); +} + +// Gets the file descriptor associated with this I/O device. + +ACE_HANDLE +ACE_Event_Handler::get_handle (void) const +{ + ACE_TRACE ("ACE_Event_Handler::get_handle"); + return ACE_INVALID_HANDLE; +} + +// Sets the file descriptor associated with this I/O device. + +void +ACE_Event_Handler::set_handle (ACE_HANDLE) +{ + ACE_TRACE ("ACE_Event_Handler::set_handle"); +} + +// Gets the priority of this handler. + +int +ACE_Event_Handler::get_priority (void) const +{ + ACE_TRACE ("ACE_Event_Handler::get_priority"); + return this->priority_; +} + +// Sets the priority + +void +ACE_Event_Handler::set_priority (int priority) +{ + ACE_TRACE ("ACE_Event_Handler::set_priority"); + this->priority_ = priority; +} + +// Called when the object is about to be removed from the Dispatcher +// tables. + +int +ACE_Event_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask) +{ + ACE_TRACE ("ACE_Event_Handler::handle_close"); + return -1; +} + +// Called when input becomes available on fd. + +int +ACE_Event_Handler::handle_input (ACE_HANDLE) +{ + ACE_TRACE ("ACE_Event_Handler::handle_input"); + return -1; +} + +// Called when output is possible on fd. + +int +ACE_Event_Handler::handle_output (ACE_HANDLE) +{ + ACE_TRACE ("ACE_Event_Handler::handle_output"); + return -1; +} + +// Called when urgent data is available on fd. + +int +ACE_Event_Handler::handle_exception (ACE_HANDLE) +{ + ACE_TRACE ("ACE_Event_Handler::handle_exception"); + return -1; +} + +// Called when timer expires, TV stores the current time. + +int +ACE_Event_Handler::handle_timeout (const ACE_Time_Value &, const void *) +{ + ACE_TRACE ("ACE_Event_Handler::handle_timeout"); + return -1; +} + +// Called when a registered signal occurs. + +int +ACE_Event_Handler::handle_signal (int, siginfo_t *, ucontext_t *) +{ + ACE_TRACE ("ACE_Event_Handler::handle_signal"); + return -1; +} + +int +ACE_Event_Handler::handle_input_complete (ACE_Message_Block *, long) +{ + ACE_TRACE ("ACE_Event_Handler::handle_input_complete"); + return -1; +} + +int +ACE_Event_Handler::handle_output_complete (ACE_Message_Block *, long) +{ + ACE_TRACE ("ACE_Event_Handler::handle_input_complete"); + return -1; +} + +ACE_Message_Block * +ACE_Event_Handler::get_message (void) +{ + ACE_TRACE ("ACE_Event_Handler::get_message"); + return 0; +} + +void +ACE_Event_Handler::reactor (ACE_Reactor *reactor) +{ + ACE_TRACE ("ACE_Event_Handler::reactor"); + this->reactor_ = reactor; +} + +ACE_Reactor * +ACE_Event_Handler::reactor (void) const +{ + ACE_TRACE ("ACE_Event_Handler::Reactor"); + return this->reactor_; +} + +void +ACE_Event_Handler::reactorex (ACE_ReactorEx *reactorex) +{ + ACE_TRACE ("ACE_Event_Handler::reactorex"); + this->reactorex_ = reactorex; +} + +ACE_ReactorEx * +ACE_Event_Handler::reactorex (void) const +{ + ACE_TRACE ("ACE_Event_Handler::ReactorEx"); + + return this->reactorex_; +} + +void +ACE_Event_Handler::proactor (ACE_Proactor *proactor) +{ + ACE_TRACE ("ACE_Event_Handler::proactor"); + + this->proactor_ = proactor; +} + +ACE_Proactor * +ACE_Event_Handler::proactor (void) const +{ + ACE_TRACE ("ACE_Event_Handler::Proactor"); + + return this->proactor_; +} |