MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_service_query

Function API_ROUTINE isc_service_query

src/yvalve/why.cpp:3486–3507  ·  view source on GitHub ↗

Provide information on service object. NOTE: The parameter RESERVED must not be used for any purpose as there are networking issues involved (as with any handle that goes over the network). This parameter will be implemented at a later date.

Source from the content-addressed store, hash-verified

3484// involved (as with any handle that goes over the network). This parameter will be implemented at
3485// a later date.
3486ISC_STATUS API_ROUTINE isc_service_query(ISC_STATUS* userStatus, isc_svc_handle* handle,
3487 isc_resv_handle* /*reserved*/, USHORT sendItemLength, const SCHAR* sendItems, USHORT recvItemLength,
3488 const SCHAR* recvItems, USHORT bufferLength, SCHAR* buffer)
3489{
3490 StatusVector status(userStatus);
3491 CheckStatusWrapper statusWrapper(&status);
3492
3493 try
3494 {
3495 RefPtr<YService> service(translateHandle(services, handle));
3496
3497 service->query(&statusWrapper, sendItemLength, reinterpret_cast<const unsigned char*>(sendItems),
3498 recvItemLength, reinterpret_cast<const unsigned char*>(recvItems),
3499 bufferLength, reinterpret_cast<unsigned char*>(buffer));
3500 }
3501 catch (const Exception& e)
3502 {
3503 e.stuffException(&statusWrapper);
3504 }
3505
3506 return status[1];
3507}
3508
3509
3510// Starts a service thread.

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
queryMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected