proof of concept server implementation
This commit is contained in:
24
ixwebsocket/IXWebSocketServer.h
Normal file
24
ixwebsocket/IXWebSocketServer.h
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* IXWebSocketServer.h
|
||||
* Author: Benjamin Sergeant
|
||||
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utility> // pair
|
||||
#include <string>
|
||||
|
||||
namespace ix
|
||||
{
|
||||
class WebSocketServer {
|
||||
public:
|
||||
WebSocketServer(int port = 8080);
|
||||
virtual ~WebSocketServer();
|
||||
|
||||
std::pair<bool, std::string> run();
|
||||
|
||||
private:
|
||||
int _port;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user