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

Function setKeepAlive

src/remote/inet.cpp:3343–3360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3341}
3342
3343static bool setKeepAlive(SOCKET s)
3344{
3345/**************************************
3346 *
3347 * s e t K e e p A l i v e
3348 *
3349 **************************************
3350 *
3351 * Functional description
3352 * Set SO_KEEPALIVE, return false
3353 * in case of unexpected error
3354 *
3355 **************************************/
3356 int optval = 1;
3357 int n = setsockopt(s, SOL_SOCKET, SO_KEEPALIVE,
3358 (SCHAR*) &optval, sizeof(optval));
3359 return n != -1;
3360}
3361
3362void setStopMainThread(FPTR_INT func)
3363{

Callers 6

INET_connectFunction · 0.85
listener_socketFunction · 0.85
INET_reconnectFunction · 0.85
INET_serverFunction · 0.85
aux_connectFunction · 0.85
select_acceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected