Remove outdated get_initial_events
DatagramSocket::DatagramSocket(Family f, int p):
Socket(f, SOCK_DGRAM, p)
-{ }
+{
+#ifdef WIN32
+ WSAEventSelect(handle, event, FD_READ|FD_CLOSE);
+#endif
+ set_events(IO::P_INPUT);
+}
int DatagramSocket::connect(const SockAddr &addr)
{
return ret;
}
-IO::PollEvent DatagramSocket::get_initial_events() const
-{
- return IO::P_INPUT;
-}
-
} // namespace Net
} // namespace Msp
int connect(const SockAddr &);
unsigned sendto(const char *, unsigned, const SockAddr &);
unsigned recvfrom(char *, unsigned, SockAddr *&);
-private:
- IO::PollEvent get_initial_events() const;
};
} // namespace Net