ACE_Select_Reactor from its event loop.
#include <ace/Select_Reactor_Base.h>
class ACE_Select_Reactor_Notify : public ACE_Reactor_Notify {
public:ACE_Select_Reactor_Notify (void);~ACE_Select_Reactor_Notify (void);virtual int open ( ACE_Reactor_Impl *, ACE_Timer_Queue * = 0, int disable_notify_pipe = 0 );virtual int close (void);virtual ssize_t notify ( ACE_Event_Handler * = 0, ACE_Reactor_Mask = ACE_Event_Handler::EXCEPT_MASK, ACE_Time_Value * = 0 );virtual int dispatch_notifications ( int &number_of_active_handles, ACE_Handle_Set &rd_mask );virtual int handle_input (ACE_HANDLE handle);virtual void max_notify_iterations (int);virtual int max_notify_iterations (void);virtual void dump (void) const;ACE_ALLOC_HOOK_DECLARE;private:ACE_Select_Reactor_Impl *select_reactor_;ACE_Pipe notification_pipe /B>int max_handlep1_;ACE_Event_Tuple *event_handlers_;ACE_Event_Handler **event_handlers_;};
ACE_HANDLE is an int, whereas in Win32
it's a void *. This class hides all these details from the
bulk of the ACE_Select_Reactor code. All of these methods
are called with the main Select_Reactor token lock held.
ACE_Select_Reactor_Handler_Repository (ACE_Select_Reactor_Impl &);
~ACE_Select_Reactor_Handler_Repository (void);
int open (size_t size);
size.
int close (void);
ACE_Event_Handler *find (ACE_HANDLE handle, size_t *index_p = 0);
ACE_Event_Handler * associated with ACE_HANDLE.
If index_p is non-0, then return the index location of the
handle, if found.
int bind (ACE_HANDLE, ACE_Event_Handler *, ACE_Reactor_Mask);
ACE_Event_Handler * to the ACE_HANDLE with the
appropriate ACE_Reactor_Mask settings.
int unbind (ACE_HANDLE, ACE_Reactor_Mask mask);
ACE_HANDLE in accordance with the mask.
int unbind_all (void);
ACE_HANDLE, ACE_Event_Handler tuples.
handle to make sure it's a valid ACE_HANDLE that
within the range of legal handles (i.e., = 0 && max_size_).
int invalid_handle (ACE_HANDLE handle);
Check the handle to make sure it's a valid ACE_HANDLE that
within the range of currently registered handles (i.e.,
= 0 &&
max_handlep1_).
int handle_in_range (ACE_HANDLE handle);
Accessors.
size_t size (void);
Returns the current table size.
size_t max_handlep1 (void);
Maximum ACE_HANDLE value, plus 1.
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
AUTHOR
Doug Schmidt
LIBRARY
ace
./usr/share/doc/libace-doc/html/ACE_Select_Reactor_Handler_Repository_Iterator.html 0100644 0000000 0000000 00000004164 07113056212 027323 0 ustar root root