burrow-pi-img/deps/tools/configServer/src/WebSocketHandlers.h

23 lines
898 B
C
Raw Normal View History

2018-12-12 04:04:00 +00:00
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
2018-12-15 00:36:56 +00:00
#ifndef RPICONFIGSERVER_WEBSOCKETHANDLERS_H_
#define RPICONFIGSERVER_WEBSOCKETHANDLERS_H_
2018-12-12 04:04:00 +00:00
#include <wpi/ArrayRef.h>
2018-12-15 00:36:56 +00:00
#include <wpi/StringRef.h>
2018-12-12 04:04:00 +00:00
namespace wpi {
class WebSocket;
} // namespace wpi
void InitWs(wpi::WebSocket& ws);
void ProcessWsText(wpi::WebSocket& ws, wpi::StringRef msg);
void ProcessWsBinary(wpi::WebSocket& ws, wpi::ArrayRef<uint8_t> msg);
2018-12-12 04:04:00 +00:00
2018-12-15 00:36:56 +00:00
#endif // RPICONFIGSERVER_WEBSOCKETHANDLERS_H_