FileCx.hh

00001 /*
00002 ** Stechec project is free software; you can redistribute it and/or modify
00003 ** it under the terms of the GNU General Public License as published by
00004 ** the Free Software Foundation; either version 2 of the License, or
00005 ** (at your option) any later version.
00006 **
00007 ** The complete GNU General Public Licence Notice can be found as the
00008 ** `NOTICE' file in the root directory.
00009 **
00010 ** Copyright (C) 2007 Prologin
00011 */
00012 
00013 #ifndef FILECX_HH_
00014 # define FILECX_HH_
00015 
00016 # include "Cx.hh"
00017 
00019 class FileCx : public Cx
00020 {
00021 public:
00022   FileCx() {}
00023   virtual ~FileCx() {}
00024 
00025 protected:
00026   virtual bool pollInternal(int* timeout = 0);
00027   virtual int recvData(bool use_exception);
00028   virtual void sendData(unsigned char* data, unsigned size);
00029 };
00030 
00031 inline bool FileCx::pollInternal(int*) { return false; }
00032 inline int FileCx::recvData(bool) { return 0; }
00033 inline void FileCx::sendData(unsigned char*, unsigned) {}
00034 
00035 #endif /* !FILECX_HH_ */

Generated on Sat Jun 23 16:07:23 2007 for Stechec/TBT by  doxygen 1.4.7