#ifndef SOCKET_SET_H #define SOCKET_SET_H #include <memory> #include <SDL_net.h> class SocketSet { SocketSet(void); SocketSet(const SocketSet& rhs); SocketSet& operator = (const SocketSet& rhs); struct pImpl; std::auto_ptr<pImpl> pimpl; public: explicit SocketSet(size_t size = 1); ~SocketSet(void); bool add(TCPsocket socket); void del(TCPsocket socket); size_t check(int timeout); }; #endif /* !SOCKET_SET_H */