Definition at line 234 of file dis.c.
References serv::address, check_service_name(), create_dns(), serv::def, serv::delay_delete, DIM_ERROR, DIMSVCDUPLC, DIMSVCFORMT, DIMSVCTOOLG, dis_find_dns(), dis_hash_service_insert(), dis_init(), dis_dns_ent::dis_n_services, dll_init(), serv::dnsp, error_handler(), find_service(), serv::format_data, Memory::free(), get_format_data(), serv::id, id_get(), Memory::malloc(), MAX_NAME, serv::name, FORMAT_STR::par_bytes, serv::quality, serv::registered, serv::request_head, service_id, Serving, size, serv::size, SRC_DIS, str, serv::tag, serv::tid, serv::to_delete, serv::type, user_routine(), serv::user_routine, and serv::user_secs.
Referenced by dis_add_service_dns(), dis_start_serving_dns(), and do_dis_add_service().
250 return((
unsigned) 0);
254 strcpy(str,
"Service name too long: ");
258 return((
unsigned) 0);
262 strcpy(str,
"Duplicate Service: ");
266 return((
unsigned) 0);
270 if(
type != (
char *)0)
274 strcpy(str,
"Format String Too Long: ");
279 return((
unsigned) 0);
283 strcpy(str,
"Bad Format String: ");
288 return((
unsigned) 0);
295 new_serv->
def[0] =
'\0';
298 new_serv->
address = (
int *)address;
311 new_serv->
dnsp = dnsp;
323 return((
unsigned)service_id);
static void error_handler(int conn_id, int severity, int errcode, char *reason, int exit)
int dis_hash_service_insert(SERVICE *servp)
SERVICE * find_service(char *name)
FORMAT_STR format_data[MAX_NAME/4]
static DIS_DNS_CONN * create_dns(dim_long dnsid)
DIS_DNS_CONN * dis_find_dns(dim_long dnsid)
static int get_format_data(FORMAT_STR *format_data, char *def)
static int check_service_name(char *name)
int id_get(void *ptr, SRC_TYPES type)
static void user_routine(void *tagp, void *bufp, int *size)