From 1d7fbc275a24e5ea89e6d9a8a5ab7aca42b4c126 Mon Sep 17 00:00:00 2001 From: haller Date: Sun, 17 Apr 2005 02:33:21 +0000 Subject: Corrections de l'argument par défaut format de la fonction send --- 2005/i/robert/src/proto/proto.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2005') diff --git a/2005/i/robert/src/proto/proto.hh b/2005/i/robert/src/proto/proto.hh index 7b249d1..7ee5390 100644 --- a/2005/i/robert/src/proto/proto.hh +++ b/2005/i/robert/src/proto/proto.hh @@ -81,7 +81,7 @@ class Proto : public NonCopyable /// Envois un packet. COMMAND est la commande à envoyer, FORMAT, donne le /// format et le nombre de paramètres ('b' : 8 bits, 'w' : 16 bits, 'd' : /// 32 bits, majuscule pour signé). - void send (char command, const char *format = 0, int a0 = 0, int a1 = 0, + void send (char command, const char *format = "", int a0 = 0, int a1 = 0, int a2 = 0, int a3 = 0, bool reliable = true); /// permet d'envoyer un packet robert void Proto::sendUnreliable (char command, const char *format, int a0, @@ -107,6 +107,7 @@ class Proto : public NonCopyable class Receiver { public: + virtual ~Receiver(void) {}; /// Recoit un packet. virtual void receive (char command, const Frame &frame) = 0; }; -- cgit v1.2.3