34 virtual void serviceHandler() = 0;
42 virtual void commandHandler() = 0;
48 virtual void clientExitHandler() = 0;
54 virtual void exitHandler(
int code) = 0;
65 void init(
const char *node,
int port);
67 void setName(
const char *name);
73 void addServiceId(
int id);
74 int *getServiceIdList();
101 static void start(
const char *name);
107 static void autoStartOn();
108 static void autoStartOff();
110 static int getClientId();
112 static char *getClientName();
113 static void setClientExitHandler(
int clientId);
114 static void clearClientExitHandler(
int clientId);
116 void addClientExitHandler();
119 static int setDnsNode(
const char *
node);
120 static int setDnsNode(
const char *
node,
int port);
123 static char *getDnsNode();
124 static int getDnsPort();
125 static void setWriteTimeout(
int secs);
126 static int getWriteTimeout();
127 void addExitHandler();
128 void addErrorHandler();
134 static char **getClientServices();
138 static int inCallback();
156 DimService(
const char *name,
char *format,
void *structure,
int size);
160 DimService(
const char *name,
const char *format,
void *structure,
int size);
184 int updateService(
int &value );
185 int updateService(
float &value );
186 int updateService(
double &value ) ;
187 int updateService(
longlong &value );
188 int updateService(
short &value );
189 int updateService(
char *
string );
191 int updateService(
void *structure,
int size );
194 int selectiveUpdateService(
int *cids);
196 int selectiveUpdateService(
int &value,
int *cids);
197 int selectiveUpdateService(
float &value,
int *cids );
198 int selectiveUpdateService(
double &value,
int *cids );
199 int selectiveUpdateService(
longlong &value,
int *cids );
200 int selectiveUpdateService(
short &value,
int *cids );
201 int selectiveUpdateService(
char *
string,
int *cids );
203 int selectiveUpdateService(
void *structure,
int size,
int *cids );
205 void setQuality(
int quality);
206 void setTimestamp(
int secs,
int millisecs);
213 void setData(
int &
data);
214 void setData(
float &
data);
215 void setData(
double &
data);
217 void setData(
short &
data);
218 void setData(
char *
data);
223 int getTimeout(
int clientId);
241 CmndInfo(
void *
data,
int datasize,
int tsecs,
int tmillisecs);
258 DimCommand(
const char *name,
const char *format);
280 int getTimestampMillisecs();
308 DimRpc(
const char *name,
const char *formatin,
const char *formatout);
310 DimRpc(
DimServerDns *dns,
const char *name,
const char *formatin,
const char *formatout);
331 void setData(
int &
data);
332 void setData(
float &
data);
333 void setData(
double &
data);
335 void setData(
short &
data);
336 void setData(
char *
data);
338 virtual void rpcHandler() = 0;
348 void declareIt(
char *name,
char *formatin,
char *formatout,
DimServerDns *dns);
virtual void serviceHandler()
virtual void commandHandler()=0
static DimClientExitHandler * itsClientExit
virtual ~DimClientExitHandler()
virtual void errorHandler(int, int, char *)
static DimExitHandler * itsExit
DimCommand * getCommand()
virtual ~DimCommandHandler()
virtual void commandHandler()
DimCommandHandler * itsCommandHandler
virtual void exitHandler(int)
static DimErrorHandler * itsSrvError
virtual ~DimServiceHandler()
virtual void clientExitHandler()
DimServiceHandler * itsServiceHandler
virtual void serviceHandler()
virtual ~DimExitHandler()
static void handler(int conn_id, char *packet, int size, int status)
DimService * getService()