| 2540 | |
| 2541 | |
| 2542 | static void inet_gen_error(bool releasePort, rem_port* port, const Arg::StatusVector& v) |
| 2543 | { |
| 2544 | /************************************** |
| 2545 | * |
| 2546 | * i n e t _ g e n _ e r r o r |
| 2547 | * |
| 2548 | ************************************** |
| 2549 | * |
| 2550 | * Functional description |
| 2551 | * An error has occurred. Mark the port as broken. |
| 2552 | * Format the status vector if there is one and |
| 2553 | * save the status vector strings in a permanent place. |
| 2554 | * |
| 2555 | **************************************/ |
| 2556 | port->port_state = rem_port::BROKEN; |
| 2557 | |
| 2558 | string node_name(port->port_connection ? port->port_connection->str_data : "(unknown)"); |
| 2559 | |
| 2560 | if (releasePort) |
| 2561 | { |
| 2562 | disconnect(port); |
| 2563 | } |
| 2564 | |
| 2565 | Arg::Gds error(isc_network_error); |
| 2566 | error << Arg::Str(node_name) << v; |
| 2567 | error.raise(); |
| 2568 | } |
| 2569 | |
| 2570 | |
| 2571 | bool_t InetXdr::x_getbytes(SCHAR* buff, unsigned bytecount) |
no test coverage detected