![]() |
VR-Link API Documentation for DIS
|
00001 /****************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 #pragma once 00006 00007 #include <vlutil/vlThreadedObject.h> 00008 #include <vlutil/vlRunnable.h> 00009 00010 00011 00012 #ifdef DtUSE_UTILITIES_NAMESPACE 00013 namespace DtUSE_UTILITIES_NAMESPACE 00014 { 00015 #endif 00016 00017 class DtInetSocket; 00018 00021 class DtIoServiceRunnable : public DtRunnable 00022 { 00023 public: 00024 00026 DtIoServiceRunnable( void* ioService, DtInetSocket* sock ); 00027 00029 virtual ~DtIoServiceRunnable(); 00030 00033 virtual void run(); 00034 00035 virtual void stop( bool block ); 00036 protected: 00037 00038 protected: 00039 bool threadIsStopped; 00040 00041 void* myIoServiceImpl; 00042 00043 DtInetSocket* mySocket; 00044 00045 }; 00046 00047 #ifdef DtUSE_UTILITIES_NAMESPACE 00048 } 00049 #endif 00050 00051