eventxx  1.0.1
eventxx::event< ccallback_type > Struct Reference

This is the specialization of eventxx::event for C-style callbacks. More...

Inheritance diagram for eventxx::event< ccallback_type >:

Public Member Functions

 event (int fd, type ev, ccallback_type handler, void *arg=0) throw ()
 Creates a new event. More...
 
- Public Member Functions inherited from eventxx::basic_event
bool pending (type ev) const throw ()
 Checks if there is an event pending. More...
 
time timeout () const throw ()
 Timeout of the event. More...
 
void priority (int priority) const throw (invalid_event, invalid_priority)
 Sets the event's priority. More...
 
int fd () const throw ()
 Event's file descriptor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from eventxx::basic_event
 basic_event () throw ()
 

Detailed Description

This is the specialization of eventxx::event for C-style callbacks.

See also
eventxx::event
Examples
bench.cpp, and test-eof.cpp.

Constructor & Destructor Documentation

◆ event()

eventxx::event< ccallback_type >::event ( int  fd,
type  ev,
ccallback_type  handler,
void *  arg = 0 
)
throw (
)
inline

Creates a new event.

Parameters
fdFile descriptor to monitor for events.
evType of events to monitor (see eventxx::type).
handlerC-style callback function.
argArbitrary pointer to pass to the handler as argument.

References eventxx::basic_event::fd().


The documentation for this struct was generated from the following file: