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

Method accept

src/remote/server/server.cpp:2229–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2227
2228
2229void ConnectAuth::accept(PACKET* send, Auth::WriterImplementation*)
2230{
2231 HANDSHAKE_DEBUG(fprintf(stderr, "Srv: ConnectAuth::accept: accepted protocol=%x op=%s\n",
2232 authPort->port_protocol, useResponse ? "response" : "accept"));
2233 fb_assert(authPort->port_protocol >= PROTOCOL_VERSION13);
2234
2235 if (useResponse)
2236 {
2237 CSTRING* const s = &send->p_resp.p_resp_data;
2238 authPort->extractNewKeys(s);
2239 ISC_STATUS sv[] = {1, 0, 0};
2240 authPort->send_response(send, 0, s->cstr_length, sv, false);
2241 }
2242 else
2243 {
2244 send->p_operation = op_accept_data;
2245 CSTRING* const s = &send->p_acpd.p_acpt_keys;
2246 authPort->extractNewKeys(s);
2247 send->p_acpd.p_acpt_authenticated = 1;
2248 if (send->p_acpt.p_acpt_type & pflag_compress)
2249 authPort->initCompression();
2250 authPort->send(send);
2251 if (send->p_acpt.p_acpt_type & pflag_compress)
2252 authPort->port_flags |= PORT_compressed;
2253 }
2254}
2255
2256
2257void Rsr::checkIface(ISC_STATUS code)

Callers 1

accept_connectionFunction · 0.45

Calls 15

addClumpletsFunction · 0.85
send_responseMethod · 0.80
initCompressionMethod · 0.80
getClumpTagMethod · 0.80
deleteClumpletMethod · 0.80
service_attachMethod · 0.80
extractNewKeysMethod · 0.45
sendMethod · 0.45
storeMethod · 0.45
rewindMethod · 0.45
isEofMethod · 0.45

Tested by

no test coverage detected