From c26a92b22080c9c6cbec81ad6b49f2899864e5aa Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 23 Jun 2006 13:42:50 +0000 Subject: [PATCH] =?utf8?q?Se=20generaliza=20el=20devque=20para=20seguir=20?= =?utf8?q?(ab)us=C3=A1ndolo=20como=20cola=20y=20poder=20pedir=20de=20recib?= =?utf8?q?ir=20una=20mac=20(tipo=20de=20mensaje)=20arbitrario.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- practicas/pipi/src/devque.cpp | 5 +++++ practicas/pipi/src/devque.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/practicas/pipi/src/devque.cpp b/practicas/pipi/src/devque.cpp index 5cd8633..fd54398 100644 --- a/practicas/pipi/src/devque.cpp +++ b/practicas/pipi/src/devque.cpp @@ -47,6 +47,11 @@ void DevQue::transmit(const std::string& data, const mac_type& mac) } std::string DevQue::receive() throw (std::runtime_error) +{ + return receive(mac); +} + +std::string DevQue::receive(const mac_type& mac) throw (std::runtime_error) { Frame* f = (Frame*) malloc(sizeof(Frame) + mtu); if (!f) diff --git a/practicas/pipi/src/devque.h b/practicas/pipi/src/devque.h index 2ee298d..603d7bd 100644 --- a/practicas/pipi/src/devque.h +++ b/practicas/pipi/src/devque.h @@ -24,6 +24,8 @@ struct DevQue: Dev /// Recibe un frame std::string receive() throw (std::runtime_error); + std::string receive(const mac_type& mac) + throw (std::runtime_error); }; -- 2.43.0