1 // 2 // Copyright (c) ZeroC, Inc. All rights reserved. 3 // 4 5 #include <Ice/EventHandler.h> 6 #include <Ice/Instance.h> 7 8 using namespace std; 9 using namespace Ice; 10 using namespace IceInternal; 11 12 #ifndef ICE_CPP11_MAPPING upCast(EventHandler * p)13IceUtil::Shared* IceInternal::upCast(EventHandler* p) { return p; } 14 #endif 15 EventHandler()16IceInternal::EventHandler::EventHandler() : 17 #if defined(ICE_USE_IOCP) || defined(ICE_OS_UWP) 18 _pending(SocketOperationNone), 19 _started(SocketOperationNone), 20 _completed(SocketOperationNone), 21 _finish(false), 22 #else 23 _disabled(SocketOperationNone), 24 #endif 25 _ready(SocketOperationNone), 26 _registered(SocketOperationNone) 27 { 28 } 29 ~EventHandler()30IceInternal::EventHandler::~EventHandler() 31 { 32 } 33