|
Fray Engine
|
Classes | |
| class | TCPServer |
| Listens on one TCP port and exchanges frames with the connected clients. All members and handlers run on the network thread (the thread running the io_context); the only exceptions are the constructor/destructor and port(). Shared ownership keeps it alive while async operations are pending. More... | |
| class | IPCManager |
| Owns the TCP servers and the threads around them. More... | |
Typedefs | |
| using | Frame = std::shared_ptr<const std::vector<F_uchar>> |
| Shared, immutable, fully built frame (prefix + header + payload); shared between threads without copying. | |
| using | Socket = std::shared_ptr<boost::asio::ip::tcp::socket> |
| Shared TCP client socket; only the network thread may use it. | |
| using | ConnectionHandler = std::function<void(Socket)> |
| Callback invoked on the network thread with each newly accepted client socket. | |
| using | TCPServerSP = std::shared_ptr<TCPServer> |
| Shared pointer to a TCPServer. | |
| using fray::ipc::ConnectionHandler = std::function<void(Socket)> |
Callback invoked on the network thread with each newly accepted client socket.
Definition at line 41 of file ipc_manager.hpp.
| using fray::ipc::Frame = std::shared_ptr<const std::vector<F_uchar>> |
Shared, immutable, fully built frame (prefix + header + payload); shared between threads without copying.
Definition at line 37 of file ipc_manager.hpp.
| using fray::ipc::Socket = std::shared_ptr<boost::asio::ip::tcp::socket> |
Shared TCP client socket; only the network thread may use it.
Definition at line 39 of file ipc_manager.hpp.
| using fray::ipc::TCPServerSP = std::shared_ptr<TCPServer> |
Shared pointer to a TCPServer.
Definition at line 176 of file ipc_manager.hpp.