A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::net::WebSocketServerOptions Struct Reference

Listen address, path, and per-stream defaults for a WebSocketWireServer. More...

#include <cpp/a11/net/websocket_wire_stream.h>

Public Member Functions

absl::Status Validate () const
 

Public Attributes

std::string path = "/a11"
 WebSocket endpoint path.
 
std::string bind_address = "127.0.0.1"
 Local listen address.
 
std::uint16_t port = 0
 Listen port; zero requests an ephemeral port.
 
WireStreamOptions stream_options
 Defaults for accepted streams.
 
ChannelFramingOptions framing
 Framing for accepted streams.
 
Http2Options http2_options
 Server HTTP/2 and TLS policy.
 

Detailed Description

Listen address, path, and per-stream defaults for a WebSocketWireServer.

A port of 0 requests an ephemeral port. stream_options and framing are applied to each accepted stream; http2_options carries transport and TLS settings.

Member Function Documentation

◆ Validate()

absl::Status a11::net::WebSocketServerOptions::Validate ( ) const
Returns
OK if the options are internally consistent.

Member Data Documentation

◆ bind_address

std::string a11::net::WebSocketServerOptions::bind_address = "127.0.0.1"

Local listen address.

◆ framing

ChannelFramingOptions a11::net::WebSocketServerOptions::framing

Framing for accepted streams.

◆ http2_options

Http2Options a11::net::WebSocketServerOptions::http2_options

Server HTTP/2 and TLS policy.

◆ path

std::string a11::net::WebSocketServerOptions::path = "/a11"

WebSocket endpoint path.

◆ port

std::uint16_t a11::net::WebSocketServerOptions::port = 0

Listen port; zero requests an ephemeral port.

◆ stream_options

WireStreamOptions a11::net::WebSocketServerOptions::stream_options

Defaults for accepted streams.


The documentation for this struct was generated from the following files: