/* * IXWebSocketServer.h * Author: Benjamin Sergeant * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. */ #pragma once #include // pair #include #include #include namespace ix { class WebSocketServer { public: WebSocketServer(int port = 8080); virtual ~WebSocketServer(); std::pair run(); void handleConnection(int fd); private: int _port; std::vector _workers; }; }