MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / inet_gen_error

Function inet_gen_error

src/remote/inet.cpp:2542–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2540
2541
2542static 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
2571bool_t InetXdr::x_getbytes(SCHAR* buff, unsigned bytecount)

Callers 2

INET_connectFunction · 0.85
inet_errorFunction · 0.85

Calls 3

StrClass · 0.85
disconnectFunction · 0.70
raiseMethod · 0.45

Tested by

no test coverage detected