![]() |
Stdin2.hGo to the documentation of this file.00001 00006 /* 00007 Copyright (C) 2004 Anders Hedstrom 00008 Parts Copyright (c) Vergil of Ragestorm.net, 2003 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 #ifndef _STDIN2_H 00025 #define _STDIN2_H 00026 00027 #include <Stdin.h> 00028 00029 class ICMPTwistSocket; 00030 00031 00032 class Stdin2 : public Stdin 00033 { 00034 public: 00035 Stdin2(ISocketHandler&); 00036 00037 void OnData(const char *,size_t); 00038 void SetIcmpSocket(ICMPTwistSocket *p) { m_pICMPSocket = p; } 00039 00040 void OnOptions(int,int,int,SOCKET) {} 00041 00042 private: 00043 ICMPTwistSocket *m_pICMPSocket; 00044 }; 00045 00046 00047 00048 00049 #endif // _STDIN2_H |