Class CTCPPortScanner Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: Custom Code in Header Public SectionNext page: Custom Code in Source After Includes    Show member index
Custom Code in Header Private Section Declared in:
TCPPortScanner.h

'Custom Code' icon -- Shortcut to top of page. Custom Code

//Our TCP socket
class CTCPScanner : public CTCPSocketAsync
{
public:
    //Ctor and Dtor
    CTCPScanner(CTCPPortScanner* pFather,
                unsigned short usPort,
                int iDataSize,
                DWORD dwTimeout);
    virtual ~CTCPScanner();
protected:
    //Our events
    NO_OnSocketAccept
    NO_OnSocketOOB
    NO_OnSocketWrite

    virtual BOOL OnSocketTimeout();
    virtual BOOL OnSocketConnect(int iErrorCode);
    virtual BOOL OnSocketClose(int iErrorCode);
    virtual BOOL OnSocketReceive(int iErrorCode);
private:
    //Our father
    CTCPPortScanner* m_pFather;

    //Do we receive data
    int m_iDataSize;

    //Do we have a timeout
    DWORD m_dwTimeout;

    //The port
    unsigned short m_usPort;
};
//Structure of ports to scan
typedef struct _ScanPair
{
    unsigned short usFromPort;
    unsigned short usToPort;
} ScanPair;

//Our list of ports to scan
typedef std::deque<ScanPair> PortsVector;

//Our map of data
typedef std::map<unsigned short,char*> DataMap;

//Thread data
typedef struct _ThreadData
{
    CTCPPortScanner*    pScanner;
    BOOL                bError;
} ThreadData;

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.