5 #ifndef __RD_SERVER_HPP__
6 #define __RD_SERVER_HPP__
11 #include <yarp/os/RFModule.h>
12 #include <yarp/os/ResourceFinder.h>
13 #include <yarp/os/RpcServer.h>
14 #include <yarp/os/Port.h>
17 #include "RpcResponder.hpp"
26 class Server :
public yarp::os::RFModule
35 bool configure(yarp::os::ResourceFinder &rf);
48 bool interruptModule();
56 std::map <int, Player> players;
57 std::map <int, int> players_belief;
58 std::mutex players_mutex;
60 yarp::os::RpcServer rpcServer;
62 yarp::os::Port rdBroadcast;
67 #endif // __RD_SERVER_HPP__