![]() |
General Programming »
Internet / Network »
General
Intermediate
CTraceRoute v1.0By PJ NaughterA freeware MFC class to implement traceroute functionality. |
VC6, MFC, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Welcome to CTraceRoute, a freeware MFC class to implement trace route functionality.
| Features |
| Usage |
| History |
| API Reference |
| Planned Enhancements |
| Contacting the Author |
#include tracer.h in which ever of your modules needs to make calls to the class.
History
V1.0 (18th November 1998)
API Reference
The API consists of the the 2 classes:
CTraceRouteReply
This is an encapsulation of all the information as returned from a trace route request. It is a typedef for
the following:
typedef CArray<CHostTraceMultiReply, CHostTraceMultiReply&> CTraceRouteReply
The members of CHostTraceMultiReply are as follows:
| DWORD dwError | This is the error if any which occurred when doing a ping to this host. This corresponds to the values as returned from GetLastError. 0 represents no error occurred. |
| in_addr Address | The IP address of the host for this part of the trace route. |
| DWORD minRTT | Minimum round trip time in milliseconds for this host. |
| DWORD avgRTT | Average round trip time in milliseconds for this host. |
| DWORD maxRTT | Maximum round trip time in milliseconds for this host. |
CTraceRoute
Trace
OnPingResult
OnSingleHostResult
Return Value:
If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE.
To get extended error information, call ::GetLastError().
Parameters:
CTraceRouteReply for further details.
Remarks:
This function implements the trace route functionality.
Return Value:
TRUE to continue the trace route. Returning FALSE will cancel the operation.
Parameters:
Remarks:
This function is called just after each ping reply. You can derive your own class from CTraceRoute and
override this function so that your version is called at the appropriate times.
Return Value:
TRUE to continue the trace route. Returning FALSE will cancel the operation.
Parameters:
Remarks:
This function is called just after all the pings for each host is complete. You can derive your own
class from CTraceRoute and override this function so that your version is called at the appropriate
times. See the CMyTraceRoute class in main.cpp for a concrete implementation.
Contacting the Author
PJ Naughter
Email: pjn@indigo.ie
Web: http://www.naughter.com
18th November 1998
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+PgUp/PgDown to switch pages.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 7 Apr 2000 Editor: Valerie Bradley |
Copyright 2000 by PJ Naughter Everything else Copyright © CodeProject, 1999-2010 Web18 | Advertise on the Code Project |