00001 00002 // 00003 // Fichero : fndesocket.h 00004 // Autor : Javier Gomez Sanchez 00005 // Fecha creacion : 00006 // 00007 // Descripcion : Lee del socket que se le pase por argumento al 00008 // operador. 00009 // 00010 // Notas 00011 // - A diferencia de fndesocket este no es un productor ya que 00012 // el operador recibe un argumento. 00013 // @ Estudiar un diseņo alternativo 00014 // 00016 00017 #ifndef __FNDESOCKETDIN_H__ 00018 #define __FNDESOCKETDIN_H__ 00019 00020 #include "jic/exc/excepcion.hpp" 00021 #include "jic/task/producers/excmensnoconst.hpp" 00022 #include "jic/task/CObjFunction.hpp" 00023 #include "jic/task/CMessageBlock.hpp" 00024 00025 namespace TASK { 00026 namespace PRODUCERS { 00027 00028 //----------------------------------------------------------------- 00029 // Clase Template : FnDeSocketDin 00030 //----------------------------------------------------------------- 00031 template<class Mensaje> 00032 class FnDeSocketDin : public TASK::CObjFunction 00033 { 00034 public: 00035 FnDeSocketDin(); 00036 00037 TASK::CMessageBlock<Mensaje>* operator() (SOCKETS::Socket & socket); 00038 00039 protected: 00040 }; 00041 00042 #ifdef ACE_TEMPLATES_REQUIRE_SOURCE 00043 #include "fndesocketdin.cpp" 00044 #endif 00045 00046 } // PRODUCERS 00047 } // TASK 00048 00049 #endif