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

Function INET_reconnect

src/remote/inet.cpp:1239–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237
1238
1239rem_port* INET_reconnect(SOCKET handle)
1240{
1241/**************************************
1242 *
1243 * I N E T _ r e c o n n e c t
1244 *
1245 **************************************
1246 *
1247 * Functional description
1248 * A communications link has been established by another
1249 * process. We have inheritted the handle. Set up
1250 * a port block.
1251 *
1252 **************************************/
1253 rem_port* const port = alloc_port(NULL);
1254
1255 port->port_handle = handle;
1256 port->port_flags |= PORT_server;
1257 port->port_server_flags |= SRVR_server;
1258
1259 if (! setKeepAlive(port->port_handle)) {
1260 gds__log("inet server err: setting KEEPALIVE socket option \n");
1261 }
1262
1263 if (! setNoNagleOption(port)) {
1264 gds__log("inet server err: setting NODELAY socket option \n");
1265 }
1266
1267 return port;
1268}
1269
1270rem_port* INET_server(SOCKET sock)
1271{

Callers 1

WinMainFunction · 0.85

Calls 3

setKeepAliveFunction · 0.85
setNoNagleOptionFunction · 0.85
alloc_portFunction · 0.70

Tested by

no test coverage detected