| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
00001 #ifndef DummySocket_h_DEFINED 00002 #define DummySocket_h_DEFINED 00003 00004 #include <stdarg.h> 00005 00006 class Wireless; 00007 00008 //! Tekkotsu wireless DummySocket class 00009 /*! 00010 * This class provides a DummySocket that doesn't really do anything 00011 * It exists to maintain code readability; while supporting dogs without 00012 * wireless 00013 * Of course, since it does nothing, it doesn't need documentation 00014 */ 00015 00016 class DummySocket : public Socket { 00017 friend class Wireless; 00018 00019 public: 00020 DummySocket (int sockn) : Socket (sockn) { } 00021 virtual ~DummySocket () { } 00022 byte* getWriteBuffer(int bytesreq) { return NULL; } 00023 void write(int size) { } 00024 int read() { return -1; } 00025 byte* getReadBuffer() { return NULL; }; 00026 void init() { } 00027 int setFlushType(FlushType_t fType) { return 0; } 00028 void setTextForward() { } 00029 void setForward(DummySocket * forsock) { } 00030 void setVerbosity(int verbose) { } 00031 int write(const byte *buf, int size) { return -1; } 00032 int read(byte *buf, int size) { return -1; } 00033 int printf(const char *fmt, ...) { return 0; } 00034 int vprintf(const char *fmt, va_list al) { return 0; } 00035 int pprintf(int vlevel, const char *fmt, ...) { return 0; } 00036 void flush() { } 00037 }; 00038 00039 /*! @file 00040 * @brief Defines Tekkotsu wireless DummySocket class 00041 * @author alokl (Creator) 00042 * 00043 * $Author: ejt $ 00044 * $Name: tekkotsu-1_5 $ 00045 * $Revision: 1.2 $ 00046 * $State: Rel $ 00047 * $Date: 2003/09/25 15:32:14 $ 00048 */ 00049 00050 #endif
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:51:58 2003 by Doxygen 1.3.4 |