Someone
public text v1 · immutable#ifndef CLASS_PACKET
#define CLASS_PACKET
class Packet
{
public :
// Reception de données //
void addData (std::string);
int getDestination ();
std::string getCommande();
std::string getData();
// Envoie de données //
void setDestination(int);
void setCommande (std::string);
void setData (std::string);
std::string getRequete();
// Constructeur et destructeur //
Packet();
~Packet();
private :
std::string _data;
int _destination;
std::string _commande;
};
#endif