| 354 | |
| 355 | |
| 356 | void REMOTE_get_timeout_params(rem_port* port, ClumpletReader* pb) |
| 357 | { |
| 358 | /************************************** |
| 359 | * |
| 360 | * R E M O T E _ g e t _ t i m e o u t _ p a r a m s |
| 361 | * |
| 362 | ************************************** |
| 363 | * |
| 364 | * Functional description |
| 365 | * Determine the connection timeout parameter values for this newly created |
| 366 | * port. If the client did a specification in the DPB, use those values. |
| 367 | * Otherwise, see if there is anything in the configuration file. The |
| 368 | * configuration file management code will set the default values if there |
| 369 | * is no other specification. |
| 370 | * |
| 371 | **************************************/ |
| 372 | //bool got_dpb_connect_timeout = false; |
| 373 | |
| 374 | fb_assert(isc_dpb_connect_timeout == isc_spb_connect_timeout); |
| 375 | |
| 376 | port->port_connect_timeout = pb && pb->find(isc_dpb_connect_timeout) ? |
| 377 | pb->getInt() : port->getPortConfig()->getConnectionTimeout(); |
| 378 | |
| 379 | port->port_flags |= PORT_dummy_pckt_set; |
| 380 | port->port_dummy_packet_interval = port->getPortConfig()->getDummyPacketInterval(); |
| 381 | if (port->port_dummy_packet_interval < 0) |
| 382 | port->port_dummy_packet_interval = DUMMY_INTERVAL; |
| 383 | |
| 384 | port->port_dummy_timeout = port->port_dummy_packet_interval; |
| 385 | |
| 386 | #ifdef DEBUG |
| 387 | printf("REMOTE_get_timeout dummy = %lu conn = %lu\n", |
| 388 | port->port_dummy_packet_interval, port->port_connect_timeout); |
| 389 | fflush(stdout); |
| 390 | #endif |
| 391 | } |
| 392 | |
| 393 | |
| 394 | rem_str* REMOTE_make_string(const SCHAR* input) |
no test coverage detected