FACT++  1.0
void DimService::declareIt ( char *  name,
char *  format,
DimServiceHandler handler,
DimServerDns dns 
)
private

Definition at line 49 of file discpp.cxx.

References dis_add_service, dis_add_service_dns(), dis_init(), DimServerDns::getDnsId(), handler(), itsDataSize, itsDns, itsId, itsName, itsServiceHandler, DimServer::start(), and user_routine().

Referenced by DimCommand::DimCommand(), DimRpc::DimRpc(), and DimService().

50 {
51 // itsTagId = 0;
52  itsDns = dns;
53  itsName = new char[(int)strlen(name)+1];
54  itsDataSize = 0;
55  strcpy( itsName, name);
56  if(handler)
58  else
60 // itsTagId = id_get((void *)this, SRC_DIS);
61  dis_init();
62  if(itsDns == 0)
63  {
64  DISABLE_AST
65  itsId = dis_add_service( name, format, NULL, 0,
66 // user_routine, itsTagId);
67  user_routine, (dim_long)this);
68  ENABLE_AST
70  }
71  else
72  {
73  DISABLE_AST
74  itsId = dis_add_service_dns( itsDns->getDnsId(), name, format, NULL, 0,
75 // user_routine, itsTagId);
76  user_routine, (dim_long)this);
77  ENABLE_AST
78 // itsDns->addServiceId(itsId);
80  }
81 }
static void user_routine(void *tagp, void **buf, int *size, int *first_time)
Definition: discpp.cxx:21
void dis_init()
Definition: dis.c:220
char * itsName
Definition: dis.hxx:227
dim_long getDnsId()
Definition: discpp.cxx:403
dis_add_service_dns(dnsid, name1,"I",&NewData, sizeof(NewData),(void *) 0, 0)
long dim_long
Definition: dim_common.h:57
static void start()
Definition: discpp.cxx:512
DimServiceHandler * itsServiceHandler
Definition: dis.hxx:144
#define dis_add_service
Definition: dis.h:12
static void handler(int conn_id, char *packet, int size, int status)
Definition: webServer.c:635
int itsDataSize
Definition: dis.hxx:209
int itsId
Definition: dis.hxx:228
DimServerDns * itsDns
Definition: dis.hxx:232

+ Here is the call graph for this function:

+ Here is the caller graph for this function: