A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
boundary.cc File Reference

The net library's exception boundary. More...

#include <memory>
#include <optional>
#include <utility>
#include "a11/concurrency/internal/exception_guard_future.h"
#include "a11/data/types.h"
#include "a11/internal/exception_guard_impl.h"
#include "a11/net/http2.h"
#include "a11/net/http_sse_wire_stream.h"
#include "a11/net/internal/exception_guarded_callbacks.h"
#include "a11/net/signalling.h"
#include "a11/net/websocket_wire_stream.h"
#include "a11/net/wire_stream.h"

Namespaces

namespace  a11
 
namespace  a11::net
 
namespace  a11::net::internal
 

Functions

OnMessage a11::net::internal::GuardOnMessage (OnMessage callback)
 
OnDone a11::net::internal::GuardOnDone (OnDone callback)
 
Http2RequestHandler a11::net::internal::GuardRequestHandler (Http2RequestHandler handler)
 
OnWebSocketStream a11::net::internal::GuardOnWebSocketStream (OnWebSocketStream callback)
 
OnSignallingMessage a11::net::internal::GuardOnSignallingMessage (OnSignallingMessage callback)
 
OnHttpSseConnect a11::net::internal::GuardOnHttpSseConnect (OnHttpSseConnect callback)
 

Detailed Description

The net library's exception boundary.

Compiled with exceptions (see the exception policy block in cpp/CMakeLists.txt) so that the wrappers below can catch. Everything else in a11_net – the transports, the framing, the HTTP connections – is compiled without them and calls these instead of writing a try of its own. See a11/exception_guard.h.