#include <sys/socket.h>
#endif
#include <iostream>
+#include <msp/io/handle_private.h>
#include <msp/strings/format.h>
#include <msp/time/rawtime_private.h>
#include <msp/time/units.h>
#ifdef WIN32
event = CreateEvent(0, false, false, 0);
+#else
+ *event = handle;
#endif
}
#ifdef WIN32
event = CreateEvent(0, false, false, 0);
+#else
+ *event = handle;
#endif
}
#endif
}
-IO::Handle Socket::get_event_handle()
+const IO::Handle &Socket::get_event_handle()
{
-#ifdef WIN32
return event;
-#else
- return handle;
-#endif
}