The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHA_TCP::Sockread_Event Class Reference

Watch socket for incoming data. More...

Inheritance diagram for MHA_TCP::Sockread_Event:
Inheritance graph

Public Member Functions

 Sockread_Event (SOCKET s)
 Set socket to watch for. More...
 
- Public Member Functions inherited from MHA_TCP::Wakeup_Event
 Wakeup_Event ()
 Event Constructor. More...
 
virtual void observed_by (Event_Watcher *observer)
 Called by the Event_Watcher when this event is added to its list of observed events. More...
 
virtual void ignored_by (Event_Watcher *observer)
 Called by the Event_Watcher when this event is removed from its list of observed events. More...
 
virtual ~Wakeup_Event ()
 Destructor deregisters from observers. More...
 
virtual OS_EVENT_TYPE get_os_event ()
 Get necessary information for the Event Watcher. More...
 
virtual void reset ()
 For pure notification events, reset the "signalled" status. More...
 
virtual bool status ()
 Query wether the event is in signalled state now. More...
 

Additional Inherited Members

- Protected Attributes inherited from MHA_TCP::Wakeup_Event
OS_EVENT_TYPE os_event
 
bool os_event_valid
 

Detailed Description

Watch socket for incoming data.

Constructor & Destructor Documentation

◆ Sockread_Event()

MHA_TCP::Sockread_Event::Sockread_Event ( SOCKET  s)

Set socket to watch for.

Parameters
sThe socket to observe incoming data on.

The documentation for this class was generated from the following files: