Definition at line 229 of file dis_old.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, 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().
244 strcpy(str,
"Service name too long: ");
248 return((
unsigned) 0);
252 strcpy(str,
"Duplicate Service: ");
256 return((
unsigned) 0);
260 if(
type != (
char *)0)
264 strcpy(str,
"Format String Too Long: ");
269 return((
unsigned) 0);
273 strcpy(str,
"Bad Format String: ");
278 return((
unsigned) 0);
285 new_serv->
def[0] =
'\0';
288 new_serv->
address = (
int *)address;
301 new_serv->
dnsp = dnsp;
313 return((
unsigned)service_id);
static int get_format_data(FORMAT_STR *format_data, char *def)
int dis_hash_service_insert(SERVICE *servp)
DIS_DNS_CONN * dis_find_dns(long dnsid)
FORMAT_STR format_data[MAX_NAME/4]
SERVICE * find_service(char *name)
static void error_handler(int conn_id, int severity, int errcode, char *reason)
static int check_service_name(char *name)
int id_get(void *ptr, SRC_TYPES type)
static DIS_DNS_CONN * create_dns(long dnsid)
static void user_routine(void *tagp, void *bufp, int *size)