FrontPage|FindPage|TitleIndex|RecentChanges|RSS TEpoll.h
 
#ifndef __TEPOLL_H__
#define __TEPOLL_H__

// #include <sys/epoll.h> // epoll_...
// #include <unistd.h>    // close()

typedef struct epoll_event TEpollEvent;
typedef TEpollEvent * TPEpollEvent;

class TEpoll
{
private :
    int fd_epoll;

public :
    bool is_epoll_init;

    TEpoll(const int size);
    ~TEpoll();

    int Add(const int fd);
    int Delete(const int fd);

    int Do(TPEpollEvent events, const int max, const int nwait);
};


#endif

last modified 2004-06-15 18:25:32
EditText|FindPage|DeletePage|LikePages|