![]() |
CICMPSocket | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: ICMPSocket.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
![]() |
LPICMPHeader | m_pICMPHeader | The ICMP header |
![]() |
LPICMPHeader | m_pICMPICMPHeader | The ICMP ICMP header |
![]() |
LPIpHeader | m_pICMPIPHeader | The ICMP IP header |
![]() |
char * | m_pICMPReceiveData | ICMP receive data |
![]() |
LPIpHeader | m_pIPHeader | The IP header |
![]() |
const char * | m_pSendBuffer | Our send buffer |
![]() |
unsigned short | m_usBufferSendSize | Our send buffer size |
![]() |
unsigned short | m_usDataSize | The data size |
![]() |
CICMPSocket( const CICMPSocket& rICMP ) |
No copy Ctor | |
![]() |
CICMPSocket( BOOL bRawSocket ) |
Ctor and Dtor |
![]() |
virtual |
![]() |
virtual LPICMPHeader | ConstructICMP() const |
Construct an ICMP header |
![]() |
virtual BOOL | Create() |
Create an ICMP socket |
![]() |
virtual void | FinalICMPHeader( LPICMPHeader lpHead ) const |
Modify the ICMP |
![]() |
int | GetBufferSize() const |
Get the send buffer size |
![]() |
const char * | GetLastData() const |
Get the last data |
![]() |
unsigned long | Get the last ICMP data size | |
![]() |
const LPICMPHeader | GetLastICMPHeader() const |
Get the last ICMP header |
![]() |
const LPICMPHeader | GetLastICMPICMPHeader() const |
Get the last ICMP - ICMP header |
![]() |
const LPIpHeader | GetLastICMPIPHeader() const |
Get the last ICMP - IP header |
![]() |
const LPIpHeader | GetLastIPHeader() const |
The the last IP header |
![]() |
const char * | GetSendBuffer() const |
Get the send buffer |
![]() |
CICMPSocket & | operator =( CICMPSocket& rSocket ) |
No assigment operator |
![]() |
virtual BOOL | ProccessICMP( const char* pBuffer ) |
Proccess incoming ICMP data |
![]() |
void | ReverseHeader( LPICMPHeader pHeader ) |
Reverse the header (big little endian) |
![]() |
BOOL | Send( IP aDestinationAddress, unsigned char ucICMP, unsigned char ucType ) |
Send the data |
![]() |
BOOL | SendEcho( const std::string& rDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence, unsigned long ulData ) |
|
![]() |
BOOL | SendEcho( IP aDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence, unsigned long ulData ) |
|
![]() |
BOOL | SendICMP( LPICMPHeader lpHead, const std::string& rDestinationAddress ) |
Send all ICMP data with headers |
![]() |
BOOL | SendICMP( LPICMPHeader lpHead, IP aDestinationAddress ) |
|
![]() |
BOOL | SendInformation( const std::string& rDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence ) |
Send ICMP messages according to the name |
![]() |
BOOL | SendInformation( IP aDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence ) |
|
![]() |
BOOL | SendParameter( const std::string& rDestinationAddress, unsigned char ucError ) |
|
![]() |
BOOL | SendParameter( IP aDestinationAddress, unsigned char ucError ) |
|
![]() |
BOOL | SendQuench( const std::string& rDestinationAddress ) |
|
![]() |
BOOL | SendQuench( IP aDestinationAddress ) |
|
![]() |
BOOL | SendRedirect( const std::string& rDestinationAddress, unsigned char ucType, const std::string& rGatewayAddress ) |
|
![]() |
BOOL | SendRedirect( IP aDestinationAddress, unsigned char ucType, IP aGatewayAddress ) |
|
![]() |
BOOL | SendTime( const std::string& rDestinationAddress, unsigned char ucType ) |
|
![]() |
BOOL | SendTime( IP aDestinationAddress, unsigned char ucType ) |
|
![]() |
BOOL | SendTimestamp( const std::string& rDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence, unsigned long ulOriginateTimestamp, unsigned long ulReceiveTimestamp, unsigned long ulTransmitTimestamp ) |
|
![]() |
BOOL | SendTimestamp( IP aDestinationAddress, BOOL bReply, unsigned short usIdentifier, unsigned short usSequence, unsigned long ulOriginateTimestamp, unsigned long ulReceiveTimestamp, unsigned long ulTransmitTimestamp ) |
|
![]() |
BOOL | SendUnreachable( const std::string& rDestinationAddress, unsigned char ucType ) |
|
![]() |
BOOL | SendUnreachable( IP aDestinationAddress, unsigned char ucType ) |
|
![]() |
void | SetSendBuffer( const char* pBuffer, unsigned short usSendSize ) |
Set the buffer to send (the socket just keeps the address of the buffer, user has to keep it legal as long as the socket is alive) |
SpoofSocket.h |
stdafx.h | for precompiled header directive |
ICMPSocket.h | |
ErrorHandlerMacros.h | |
memory |
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |