2019-04-23 02:24:01 +02:00
|
|
|
/*
|
|
|
|
* IXSnakeProtocol.h
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2019-06-03 05:46:20 +02:00
|
|
|
#include <string>
|
2019-04-23 02:24:01 +02:00
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
|
|
|
class WebSocket;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace snake
|
|
|
|
{
|
|
|
|
class SnakeConnectionState;
|
|
|
|
struct AppConfig;
|
|
|
|
|
2019-05-30 17:46:50 +02:00
|
|
|
void processCobraMessage(std::shared_ptr<SnakeConnectionState> state,
|
|
|
|
std::shared_ptr<ix::WebSocket> ws,
|
|
|
|
const AppConfig& appConfig,
|
|
|
|
const std::string& str);
|
|
|
|
} // namespace snake
|