You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
429 B

#pragma once
#include "current_sandbox.h"
#include "sandbox_types.h"
/**
* Receive and Parse the Request for the current sandbox
* @return 0 if message parsing complete, -1 on error, -2 if buffers run out of space
*/
static inline int
sandbox_receive_request(struct sandbox *sandbox)
{
assert(sandbox != NULL);
struct http_session *session = sandbox->http;
return http_session_receive(session, current_sandbox_sleep);
}