Marine Library  1.0
C++ library for Linux Networking Development
Public Member Functions | Static Public Member Functions | Friends | List of all members
CEpollEvent Struct Reference

Representation of epoll_event. More...

#include <epoll.hh>

Inheritance diagram for CEpollEvent:
Inheritance graph
[legend]
Collaboration diagram for CEpollEvent:
Collaboration graph
[legend]

Public Member Functions

int fd () const
 Get fd (file descriptor). More...
 
bool valid () const
 Test if fd is valid. More...
 
bool canInput () const
 Test if there are read events. More...
 
bool canOutput () const
 Test if there are write events. More...
 
bool error () const
 Test if there are errors. More...
 
std::string toString () const
 Get readable description. More...
 

Static Public Member Functions

static std::string EventsName (uint32_t ev)
 Get events description. More...
 

Friends

class CEpoll
 

Detailed Description

Representation of epoll_event.

Member Function Documentation

bool CEpollEvent::canInput ( ) const
inline

Test if there are read events.

Returns
true if there are read events; false otherwise
bool CEpollEvent::canOutput ( ) const
inline

Test if there are write events.

Returns
true if there are write events; false otherwise
bool CEpollEvent::error ( ) const
inline

Test if there are errors.

Returns
true if there are errors; false otherwise
static std::string CEpollEvent::EventsName ( uint32_t  ev)
inlinestatic

Get events description.

Parameters
evA bit mask representing events
Returns
Events description
int CEpollEvent::fd ( ) const
inline

Get fd (file descriptor).

Returns
fd of self
std::string CEpollEvent::toString ( ) const
inline

Get readable description.

Returns
Readable description
bool CEpollEvent::valid ( ) const
inline

Test if fd is valid.

Returns
true if fd is valid; false otherwise

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