Class CSpoofBase Data ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: Custom Code in Header Public SectionNext page: m_bMultiThreaded    Show member index
Class Declared in:
SpoofBase.h

'Overview' icon -- Shortcut to top of page. Overview

Copyright (c) 2000 Barak Weichselbaum <barak@komodia.com> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Contact info: Site: http://www.komodia.com Email: barak@komodia.com

---------------------------------------------------------------------------

Handles basic errors

Hierarchy Chart Hierarchy Chart

'Data Items' icon -- Shortcut to top of page. Data Items

Private data static BOOL m_bMultiThreaded Are we multithreaded
Private data static BOOL m_Initialized Are we initialized
Private data int m_LastError Last error we had
Private data CSpoofLog * m_LocalLog If we have a local log
Private data static CSpoofLog * m_Log Construction/Destruction
Private data LPSTR m_lpClassName Our class name
Private data static int m_NumberOfThreads Number of threaded
Private data static CSpoofBase * m_pShutdownClass Class to notify

'Constructors' icon -- Shortcut to top of page. Constructors

Public constructor

CSpoofBase()

ctor and dtor
Private constructor

CSpoofLog::CSpoofLog()

'Destructors' icon -- Shortcut to top of page. Destructors

Public destructor virtual

~CSpoofBase()

Private destructor

CSpoofLog::~CSpoofLog()

CSpoofLog end

'Functions' icon -- Shortcut to top of page. Functions

Public function int

GetLastError()

Get the last error
Private function CSpoofBase::CSpoofLog *

GetLog()

Get the correct log
Protected function static int

GetNumberOfThreads()

Get the number of threads
Public function static BOOL

InitializeSockets( BOOL bMultiThreaded=FALSE, int iNumberOfThreads=0 )

Initialize the sockets
Protected function static BOOL

IsMultiThreaded()

Are we multithreaded
Public function char FAR *

LongToString( long lAddr )

Convert long to string
Protected function virtual void

NotifyShutdown()

Shutdown notifier
Protected function void

RegisterShutdown( CSpoofBase* pBase )

Register shutdown class
Protected function void

ReportError( LPCSTR lpMethod )

Report an unknown error (use GetLastError)
Protected function void

ReportError( LPCSTR lpMethod, LPCSTR lpMessage )

Report an error
Protected function virtual void

ReportError( LPCSTR lpMethod, int iErrorCode )

Report and error
Protected function static void

ReportStaticError( LPCSTR lpClass, LPCSTR lpMethod )

Report an unknown error (use GetLastError)
Protected function static void

ReportStaticError( LPCSTR lpClass, LPCSTR lpMethod, LPCSTR lpMessage )

Report an unknown error (use GetLastError)
Protected function void

SetLastError( LPCSTR lpMethod )

Set the socket last error
Protected function void

SetLastError( LPCSTR lpMethod, int iErrorCode )

Public function void

SetLocalLog( CSpoofLog* pLog )

Set the local log
Public function void

SetLog( CSpoofLog* pLog )

Save a new log
Protected function void

SetName( LPCSTR lpName )

Set the name of the current class
Public function static BOOL

ShutdownSockets()

Shutdown the sockets

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

'Implementation Details' icon -- Shortcut to top of page. Implementation Details

File(s)
D:\dev\Komodia\SpoofBase.cpp
D:\dev\Komodia\SpoofBase.h
Header Includes
winsock2.h     
ws2tcpip.h     
Source Includes
stdafx.h     for precompiled header directive
SpoofBase.h     
Owner
LibV3
Last Modified
3/31/2001 7:46:45 PM

Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 24 Apr 2001.