X-Git-Url: http://git.tdb.fi/?p=r2c2.git;a=blobdiff_plain;f=source%2Fnetwork%2Fclient.h;h=02931e553d69a9efc1a8afed0d4714da924654f2;hp=a8f043e575e0fde9996adaec7f314a3a8983488d;hb=7b4155fa0581d7c5fe198e4fb1dea61fa0846eec;hpb=b36f3dc43853c76b4710cb1a7b932a758e1693a1 diff --git a/source/network/client.h b/source/network/client.h index a8f043e..02931e5 100644 --- a/source/network/client.h +++ b/source/network/client.h @@ -28,7 +28,7 @@ public: sigc::signal signal_error; private: - const Catalogue &catalogue; + Catalogue &catalogue; Protocol proto; Msp::Net::StreamSocket *socket; Msp::Net::Communicator *comm; @@ -39,7 +39,7 @@ private: std::map trains; public: - Client(const Catalogue &); + Client(Catalogue &); ~Client(); void use_event_dispatcher(Msp::IO::EventDispatcher &); @@ -49,7 +49,7 @@ public: void send(const P &pkt) { if(comm) comm->send(pkt); } - const Catalogue &get_catalogue() const { return catalogue; } + Catalogue &get_catalogue() const { return catalogue; } const std::list &get_routes() const { return routes; } void set_power(bool); void set_halt(bool);