1 |
// Copyright (C) 2003 Stephane Thiell |
2 |
// |
3 |
// This file is part of pxyscand (from pxys) |
4 |
// |
5 |
// This program is free software; you can redistribute it and/or |
6 |
// modify it under the terms of the GNU General Public License |
7 |
// as published by the Free Software Foundation; either version 2 |
8 |
// of the License, or (at your option) any later version. |
9 |
// |
10 |
// This program is distributed in the hope that it will be useful, |
11 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
// GNU General Public License for more details. |
14 |
// |
15 |
// You should have received a copy of the GNU General Public License |
16 |
// along with this program; if not, write to the Free Software |
17 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 |
// |
19 |
// $Id: PXMWingate.h,v 1.1.1.1 2003/12/30 17:09:00 mbuna Exp $ |
20 |
// |
21 |
#ifndef INCLUDED_PXMWINGATE_H_ |
22 |
#define INCLUDED_PXMWINGATE_H_ |
23 |
|
24 |
#include "PXScanModule.h" |
25 |
|
26 |
#include <peak/peak.h> |
27 |
|
28 |
class PXMWingate : public PXScanModule |
29 |
{ |
30 |
public: |
31 |
PXMWingate(PXScan *inScan); |
32 |
virtual ~PXMWingate(); |
33 |
|
34 |
void InitModule(); |
35 |
bool StartScan(); |
36 |
|
37 |
protected: |
38 |
void SendCiscoRequest(peak_stream s); |
39 |
void ProcessEvent(peak_stream s, int type); |
40 |
static void EventCallback(peak_stream s, int type, void *context); |
41 |
|
42 |
peak_stream mStream; |
43 |
bool mCiscoRequest; |
44 |
int mLinesTry; |
45 |
|
46 |
static uint32_t sConnCount; |
47 |
static uint32_t sProxyCount1; |
48 |
static uint32_t sProxyCount2; |
49 |
}; |
50 |
|
51 |
#endif // INCLUDED_PXMWINGATE_H_ |