FrontPage|FindPage|TitleIndex|RecentChanges|RSS source_ep.h
 
source_ep.h
/* ----------------------------------------------------------

 ep.h by biscuit@actoz.com 
 for Linux 2.6.x

 v1.0 06/19/2004 first release

---------------------------------------------------------- */

#ifndef __TEPOLL_H__
#define __TEPOLL_H__

#include <sys/epoll.h>

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-24 12:33:58
EditText|FindPage|DeletePage|LikePages|