Project
Loading...
Searching...
No Matches
ControlWebSocketHandler.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef O2_FRAMEWORK_CONTROLWEBSOCKETHANDLER_H_
12#define O2_FRAMEWORK_CONTROLWEBSOCKETHANDLER_H_
13#include "HTTPParser.h"
15#include <map>
16#include <string>
17
18namespace o2::framework
19{
20struct DriverServerContext;
21
25 ~ControlWebSocketHandler() override = default;
26
33 void headers(std::map<std::string, std::string> const& headers) override;
34
36 void beginFragmentation() override {}
37
40 void frame(char const* frame, size_t s) override;
41
43 void endFragmentation() override{};
45 void control(char const* frame, size_t s) override{};
46
49 void beginChunk() override
50 {
51 didProcessMetric = false;
52 didHaveNewMetric = false;
53 }
54
58 void endChunk() override;
59
66 pid_t mPid = 0;
68 size_t mIndex = (size_t)-1;
71 bool didProcessMetric = false;
72 bool didHaveNewMetric = false;
73};
74
75} // namespace o2::framework
76#endif // O2_FRAMEWORK_CONTROLWEBSOCKETHANDLER_H_
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
An handler for a websocket message stream.
size_t mIndex
The index of the remote process associated to this handler.
void endFragmentation() override
FIXME: not implemented.
void headers(std::map< std::string, std::string > const &headers) override
void beginFragmentation() override
FIXME: not implemented by the backend.
~ControlWebSocketHandler() override=default
void frame(char const *frame, size_t s) override
void control(char const *frame, size_t s) override
FIXME: not implemented.
An handler for a websocket message stream.
Definition HTTPParser.h:136