6 #ifndef WEBSOCKETCARRIER_H
7 #define WEBSOCKETCARRIER_H
9 #include "WebSocket/WebSocket.h"
30 Carrier* create()
const override;
32 std::string getName()
const override;
34 bool checkHeader(
const Bytes& header)
override;
35 void getHeader(
Bytes& header)
const override;
36 bool requireAck()
const override;
37 bool isTextMode()
const override;
38 bool supportReply()
const override;
48 bool canOffer()
const override;
51 static constexpr
size_t header_lenght {8};
52 WebSocket messageHandler;
A simple abstraction for a block of bytes.
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
The basic state of a connection - route, streams in use, etc.
Minimal requirements for an efficient Writer.
Communicating between two ports via TCP.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)