X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Fsocket.h;fp=source%2Fnet%2Fsocket.h;h=1f60f9bb2276942ce31e7eaf69612e4e67641f02;hp=c830930d6d54b6787357e73f92e48a17882d1168;hb=88bbb4039aa274c7f41ebe3a18085b63427e5475;hpb=6f6845971a21c2d7e04b87925f5e657f0f20ca0d diff --git a/source/net/socket.h b/source/net/socket.h index c830930..1f60f9b 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -20,6 +20,14 @@ public: 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; @@ -27,6 +35,9 @@ protected: Socket(const Private &); Socket(Family, int, int); +private: + void platform_init(); + void platform_cleanup(); public: ~Socket(); @@ -40,6 +51,9 @@ public: 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