![]() |
CPingSocket | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: PingSocket.h |
Copyright (c) 2000-2003 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 Main contact: barak@komodia.com For custom projects, consulting, or other paid services: sales@komodia.com
![]() |
IP | m_aReplyingAddress | Our replying address |
![]() |
BOOL | m_bPingDone | Is the ping done ? |
![]() |
BOOL | m_bSameID | Do we use the same ID |
![]() |
BOOL | m_bTimeout | Was it a timeout |
![]() |
DWORD | m_dwLastTick | Last tick the icmp was sent |
![]() |
DWORD | m_dwTimeElapsed | Time it tool |
![]() |
DWORD | m_dwTimeout | Do we have a timeout |
![]() |
int | m_iDataSize | Packet data size |
![]() |
unsigned char | m_ucTTL | The TTL |
![]() |
unsigned short | m_usLastPingID | Our last ping ID |
![]() |
unsigned short | m_usLastPingSequence | And sequence |
![]() |
Ctor and Dtor |
![]() |
virtual |
![]() |
int | GetDataSize() const |
Get the data size |
![]() |
IP | GetReplyingAddress() const |
Get the replying address |
![]() |
DWORD | GetTimeElapsed() const |
Get the time elapsed |
![]() |
unsigned char | GetTTL() const |
Get the TTL |
![]() |
virtual BOOL | IsIDOK( unsigned short usID, unsigned short usSequence ) const |
Is an ID OK |
![]() |
BOOL | IsPingDone() const |
Is the ping done ? |
![]() |
BOOL | IsTimeout() const |
Was it a timeout |
![]() |
virtual BOOL | OnSocketReceive( int iErrorCode ) |
|
![]() |
virtual BOOL | ||
![]() |
virtual BOOL | Ping( const std::string& rDestinationAddress, DWORD dwTimeout=3000 ) |
Do the ping |
![]() |
virtual BOOL | Ping( IP aDestinationAddress, DWORD dwTimeout=3000 ) |
|
![]() |
virtual void | PingDone( BOOL bTimeout ) |
Events for user to overide Ping is done bTimeout - If a timeout occured |
![]() |
virtual void | PingDoneData( IP aReplyingAddress, unsigned char ucTTL, DWORD dwTimeElapsed, int iDataSize, unsigned short usID, BOOL bTTLExpired ) |
Ping is done, and this is the pings data aReplyingAddress - Address that sent the ping ucTTL - Received TTL dwTimeElapsed - Time it took to the ping to arrive (ms) iDataSize - Size of the ping's data usID - Ping ID bTTLExpired - Was it TTL expired packet |
![]() |
void | SetID( unsigned short usID ) |
Set the ID |
![]() |
void | SetSequence( unsigned short usSequence ) |
Set the sequence |
![]() |
void | SetUseSameID( BOOL bSameID ) |
Use the same ID |
ICMPSocketAsync.h |
stdafx.h | for precompiled header directive |
PingSocket.h | |
ErrorHandlerMacros.h |
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |