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

Method callback

src/remote/server/server.cpp:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 }
207
208 unsigned int callback(unsigned int dataLength, const void* data,
209 unsigned int bufferLength, void* buffer)
210 {
211 if (keyCallback)
212 return keyCallback->callback(dataLength, data, bufferLength, buffer);
213
214 if (networkCallback.isStopped())
215 return 0;
216
217 Reference r(*port);
218 loadClientKey();
219 unsigned rc = keyCallback ?
220 keyCallback->callback(dataLength, data, bufferLength, buffer) :
221 // use legacy behavior if holders do wish to accept keys from client
222 networkCallback.callback(dataLength, data, bufferLength, buffer);
223
224 return rc;
225 }
226
227 void loadClientKey()
228 {

Callers

nothing calls this directly

Calls 2

callbackMethod · 0.45
isStoppedMethod · 0.45

Tested by

no test coverage detected