X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/acf9258bf769e7a5c87adb453945943770a2d6b8..fc388ed8c2016ad44f83d20859bf864562f731a1:/Model/src/iconector.cpp?ds=sidebyside diff --git a/Model/src/iconector.cpp b/Model/src/iconector.cpp index c4db5d3..4a27a9c 100644 --- a/Model/src/iconector.cpp +++ b/Model/src/iconector.cpp @@ -17,7 +17,7 @@ IConector::~IConector() out_list.clear(); } -int IConector::send_msg(int where, int msg) +void IConector::send_msg(int where, int msg) { // Recorro toda la lista y envĂ­o el mensage a cada // elemento conectado en "where" @@ -25,18 +25,15 @@ int IConector::send_msg(int where, int msg) switch (where) { case IN: for(it=in_list.begin(); it!=in_list.end(); it++) - (*it)->recieve_msg(msg, this); + (*it)->recieve_msg(msg, this, NULL); break; case OUT: for(it=out_list.begin(); it!=out_list.end(); it++) - (*it)->recieve_msg(msg, this); + (*it)->recieve_msg(msg, this, NULL); } - - // TODO : ver el tema de los valores de retorno!! - return 0; } -void IConector::recieve_msg(int msg, IConector *who) +void IConector::recieve_msg(int msg, IConector *who, void *data) { // Manejo los mensages que yo conozco switch (msg) {