class Socket: public IO::EventObject
{
protected:
+ enum SocketEvent
+ {
+ S_NONE = IO::P_NONE,
+ S_INPUT = IO::P_INPUT,
+ S_CONNECT = 4096,
+ S_ACCEPT = 8192
+ };
+
struct Private;
Private *priv;
Socket(const Private &);
Socket(Family, int, int);
+private:
+ void platform_init();
+ void platform_cleanup();
public:
~Socket();
const SockAddr &get_local_address() const;
void set_timeout(const Time::TimeDelta &);
+protected:
+ void set_socket_events(unsigned);
+ void set_platform_events(unsigned);
};
} // namespace Net