// ********************************************************************** // // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include using namespace std; using namespace Ice; using namespace IceInternal; IceUtil::Shared* IceInternal::upCast(EventHandler* p) { return p; } ICE_DECLSPEC_EXPORT IceUtil::Shared* IceInternal::upCast(ThreadPoolWorkItem* p) { return p; } InstancePtr IceInternal::EventHandler::instance() const { return _instance; } IceInternal::EventHandler::EventHandler(const InstancePtr& instance, SOCKET fd) : _instance(instance), _stream(_instance.get()), _fd(fd), _serializing(false), _registered(false) { } IceInternal::EventHandler::~EventHandler() { }