diff options
Diffstat (limited to 'cppe/demo/IceE/chat/PingThread.h')
-rw-r--r-- | cppe/demo/IceE/chat/PingThread.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cppe/demo/IceE/chat/PingThread.h b/cppe/demo/IceE/chat/PingThread.h new file mode 100644 index 00000000000..e2a413ae752 --- /dev/null +++ b/cppe/demo/IceE/chat/PingThread.h @@ -0,0 +1,33 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 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. +// +// ********************************************************************** + +#ifndef CHAT_PING_THREAD_H +#define CHAT_PING_THREAD_H + +#include <IceE/Thread.h> +#include <Router.h> + +class SessionPingThread : public IceUtil::Thread, public IceUtil::Monitor<IceUtil::Mutex> +{ +public: + + SessionPingThread(const Glacier2::SessionPrx& session); + + virtual void run(); + void destroy(); + +private: + + const Glacier2::SessionPrx _session; + const IceUtil::Time _timeout; + bool _destroy; +}; +typedef IceUtil::Handle<SessionPingThread> SessionPingThreadPtr; + +#endif |