mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-17 16:00:26 +03:00
Added response verdict popping from the queue and implemented PopFromNanoQueue.
This commit is contained in:
@@ -231,4 +231,18 @@ nano_request_delayed_verdict(
|
||||
void
|
||||
nano_send_metric_data_sender(NanoAttachment *attachment);
|
||||
|
||||
///
|
||||
/// @brief Pops one element from the shared memory queue and returns its session ID.
|
||||
///
|
||||
/// This function checks if data is available in the queue, receives the data,
|
||||
/// extracts the session ID from the HttpReplyFromService structure, and pops
|
||||
/// the element from the queue.
|
||||
///
|
||||
/// @param attachment A pointer to a NanoAttachment structure representing the attachment to the nano service.
|
||||
///
|
||||
/// @return The session ID of the popped element, or 0 if the queue is empty or an error occurred.
|
||||
///
|
||||
AttachmentVerdictResponse
|
||||
PopResponseVerdictFromQueue(NanoAttachment *attachment);
|
||||
|
||||
#endif // __NANO_ATTACHMENT_IO_H__
|
||||
|
||||
Reference in New Issue
Block a user