From daea50b1df19aea257018e4725463f33ce09b937 Mon Sep 17 00:00:00 2001 From: haller Date: Mon, 2 May 2005 19:04:32 +0000 Subject: Modification de send: passage d'un max de 4 arguments à 6 arguments. --- 2005/i/robert/src/proto/proto.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '2005/i/robert/src/proto/proto.hh') diff --git a/2005/i/robert/src/proto/proto.hh b/2005/i/robert/src/proto/proto.hh index 7ee5390..163c44c 100644 --- a/2005/i/robert/src/proto/proto.hh +++ b/2005/i/robert/src/proto/proto.hh @@ -55,7 +55,7 @@ class Proto : public NonCopyable //Date du dernier envoie int tLastSend_; //Temps entre les ré-émission - static const int timeout_ = 100; + static const int timeout_ = 500; /// Frame en cours de réception Frame currentFrame_; @@ -82,10 +82,10 @@ class Proto : public NonCopyable /// 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 = "", int a0 = 0, int a1 = 0, - int a2 = 0, int a3 = 0, bool reliable = true); + int a2 = 0, int a3 = 0, int a4 = 0, int a5 = 0, bool reliable = true); /// permet d'envoyer un packet robert void Proto::sendUnreliable (char command, const char *format, int a0, - int a1, int a2, int a3); + int a1, int a2, int a3, int a4, int a5); //@{ /// Teste si le packet correspond au format et décode les valeurs. Utilise /// le même format que send. -- cgit v1.2.3