#pragma once #include "radproto/socket.h" #include "radproto/packet.h" #include "radproto/dictionaries.h" #include #include #include //uint8_t, uint32_t namespace STG { class Server { public: Server(boost::asio::io_service& io_service, const std::string& secret, uint16_t port, const std::string& filePath); private: RadProto::Packet makeResponse(const RadProto::Packet& request); void handleReceive(const boost::system::error_code& error, const std::optional& packet, const boost::asio::ip::udp::endpoint& source); void handleSend(const boost::system::error_code& ec); void startReceive(); RadProto::Socket m_radius; RadProto::Dictionaries m_dictionaries; }; }