00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_PROTOCOL_SERVER_H_
00028 #define CEYLAN_PROTOCOL_SERVER_H_
00029
00030
00031 #include "CeylanProtocolEndpoint.h"
00032
00033 #include <string>
00034
00035
00036
00037 namespace Ceylan
00038 {
00039
00040
00041
00042 namespace Middleware
00043 {
00044
00045
00046
00076 class CEYLAN_DLL ProtocolServer : public ProtocolEndpoint
00077 {
00078
00079
00080
00081 public:
00082
00083
00084
00095 ProtocolServer( Marshaller & marshaller ) ;
00096
00097
00098
00100 virtual ~ProtocolServer() throw() ;
00101
00102
00103
00133 virtual bool notifyDataAvailability() = 0 ;
00134
00135
00136
00149 virtual bool isShutdownRequested() const ;
00150
00151
00152
00165 virtual const std::string toString(
00166 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00167
00168
00169
00170
00171 protected:
00172
00173
00174
00181 virtual void askForShutdown() ;
00182
00183
00184
00197 bool _shutdownRequested ;
00198
00199
00200
00201 private:
00202
00203
00212 ProtocolServer( const ProtocolServer & source ) ;
00213
00214
00223 ProtocolServer & operator = ( const ProtocolServer & source ) ;
00224
00225
00226
00227 } ;
00228
00229
00230 }
00231
00232 }
00233
00234
00235
00236 #endif // CEYLAN_PROTOCOL_SERVER_H_
00237