Definition at line 1397 of file dis.c.
References serv::address, COMMAND, req_ent::conn_id, exit_ent::conn_id, copy_swap_buffer_out(), Curr_conn_id, Debug_on, req_ent::delay_delete, dim_print_date_time(), dis_get_n_clients(), DIS_HEADER, DIS_STAMPED_HEADER, dna_write_nowait(), req_ent::first_time, req_ent::format, serv::format_data, Memory::free(), serv::id, id_get_ptr(), Last_n_clients, Memory::malloc(), MAX_NAME, serv::name, Net_conns, NET_CONNECTION::node, serv::quality, DIS_STAMPED_PACKET::quality, release_conn(), req_ent::req_id, DIS_STAMPED_PACKET::reserved, req_ent::service_id, DIS_STAMPED_PACKET::service_id, req_ent::service_ptr, size, serv::size, DIS_STAMPED_PACKET::size, sprintf(), SRC_DIS, STAMPED, str, serv::tag, NET_CONNECTION::task, DIS_STAMPED_PACKET::time_stamp, req_ent::to_delete, req_ent::type, serv::type, serv::user_millisecs, serv::user_routine, and serv::user_secs.
Referenced by dis_insert_request(), dis_report_service(), and do_update_service().
1403 int conn_id, last_conn_id;
1404 int *pkt_buffer, header_size, aux;
1406 struct timeb timebuf;
1409 struct timezone *tz;
1425 printf(
"Updating %s for %s@%s (req_id = %d)\n",
1435 sprintf(str,
"This is a COMMAND Service");
1484 aux = timebuf.millitm;
1489 gettimeofday(&tv, tz);
1490 aux = (int)tv.tv_usec / 1000;
1509 memcpy(format_data_cp, servp->
format_data,
sizeof(format_data_cp));
1521 printf(
" Server (Explicitly) Updating Service %s: Couldn't write to Conn %3d : Client %s@%s\n",
1522 servp->
name, conn_id,
1527 printf(
" Server Updating Service %s: Couldn't write to Conn %3d : Client %s@%s\n",
1528 servp->
name, conn_id,
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
void * id_get_ptr(int id, SRC_TYPES type)
int copy_swap_buffer_out(int format, FORMAT_STR *format_data, void *buff_out, void *buff_in, int size)
#define DIS_STAMPED_HEADER
static int release_conn(int conn_id, int print_flg, int dns_flag)
FORMAT_STR format_data[MAX_NAME/4]
static int Dis_packet_size
int dna_write_nowait(int conn_id, void *buffer, int size)
struct serv * service_ptr
void dim_print_date_time()
int dis_get_n_clients(unsigned service_id)
sprintf(name1,"NewService%d", i)
static DIS_STAMPED_PACKET * Dis_packet
static int Last_n_clients