11#ifndef O2_FRAMEWORK_DPLWEBSOCKET_H_
12#define O2_FRAMEWORK_DPLWEBSOCKET_H_
29struct DriverServerContext;
30struct DriverClientContext;
46 void method(std::string_view
const&
s)
override;
47 void target(std::string_view
const&
s)
override;
48 void header(std::string_view
const& k, std::string_view
const&
v)
override;
53 void write(
char const*,
size_t);
56 void write(std::vector<uv_buf_t>& outputs);
77 std::function<
void()> handshake,
78 std::unique_ptr<WebSocketHandler> handler);
81 void replyCode(std::string_view
const&
s)
override;
82 void header(std::string_view
const& k, std::string_view
const&
v)
override;
87 void write(
char const*,
size_t);
90 void write(std::vector<uv_buf_t>& outputs);
94 void write(std::vector<uv_buf_t>& outputs, std::vector<char*>& freeList);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLuint GLsizei const GLchar * message
Defining ITS Vertex explicitly as messageable.
std::unique_ptr< WebSocketHandler > mHandler
void endHeaders() override
void replyVersion(std::string_view const &s) override
std::function< void()> mHandshake
std::atomic< bool > mHandshaken
void connect(ServiceRegistryRef ref, uv_stream_t *stream, std::function< void()> handshake, std::unique_ptr< WebSocketHandler > handler)
std::unique_ptr< DriverClientContext > mContext
void body(char *data, size_t s) override
Actual handling of WS frames happens inside here.
void replyCode(std::string_view const &s) override
void dumpHeaders()
Dump headers.
void write(char const *, size_t)
Helper to write a message to the server.
void header(std::string_view const &k, std::string_view const &v) override
std::map< std::string, std::string > mHeaders
void method(std::string_view const &s) override
void body(char *data, size_t s) override
Actual handling of WS frames happens inside here.
void header(std::string_view const &k, std::string_view const &v) override
virtual ~WSDPLHandler()=default
void endHeaders() override
DriverServerContext * mServerContext
std::unique_ptr< WebSocketHandler > mHandler
void write(char const *, size_t)
Helper to write a message to the associated client.
std::map< std::string, std::string > mHeaders