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

Function xnet_error

src/remote/os/win32/xnet.cpp:1739–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737
1738
1739static void xnet_error(rem_port* port, ISC_STATUS operation, int status)
1740{
1741/**************************************
1742 *
1743 * x n e t _ e r r o r
1744 *
1745 **************************************
1746 *
1747 * Functional description
1748 * An I/O error has occurred. If a status vector is present,
1749 * generate an error return. In any case, return NULL, which
1750 * is used to indicate and error.
1751 *
1752 **************************************/
1753 if (status)
1754 {
1755 if (port->port_state == rem_port::PENDING)
1756 {
1757 gds__log("XNET/xnet_error: errno = %d", status);
1758 }
1759
1760 xnet_gen_error(port, Arg::Gds(operation) << SYS_ERR(status));
1761 }
1762 else
1763 {
1764 xnet_gen_error(port, Arg::Gds(operation));
1765 }
1766}
1767
1768
1769bool_t XnetXdr::x_getbytes(SCHAR* buff, unsigned bytecount)

Callers 4

send_fullFunction · 0.85
x_getbytesMethod · 0.85
x_putbytesMethod · 0.85
xnet_readFunction · 0.85

Calls 2

xnet_gen_errorFunction · 0.85
GdsClass · 0.85

Tested by

no test coverage detected