Click here to Skip to main content
Click here to Skip to main content

Ping for Windows

By , 15 Feb 2001
 
  • Download source files - 133 Kb
  • Download executable - 108 Kb
  • Sample Image - WinPing.jpg

    Introduction

    This is an extremely simple Ping program for Windows. I'm using Chris Maunder's auto-completion combo box class and there's code borrowed from a Winsock 2.0 book. Credits are mentioned on the About box.

    Please see the code for details - it's quite simple.

    History

    7 Sep 2000:

    • Fixes to MRU Combo
    • Fixes to Duplicate host/ip addresses
    • Fixes to Ping times (Now correct)

    16 Sep 2001:

    • Updated source code

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Norm .net
    Software Developer (Senior) Software Kinetics
    United Kingdom United Kingdom
    Member



    Software Kinetics
    are experts in developing customised and bespoke applications and have expertise in the development of desktop, mobile and internet applications on Windows.

    We specialise in:

    • User Interface Design
    • Desktop Development
    • Windows Phone Development
    • Windows Presentation Framework
    • Windows Forms
    • Windows Communication Framework
    • Windows Services
    • Network Applications
    • Database Applications
    • Web Development
    • Web Services
    • Silverlight
    • ASP.net
     
    Visit Software Kinetics

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
    You must Sign In to use this message board.
    Search this forum  
        Spacing  Noise  Layout  Per page   
    QuestionAwesome, thank you!memberJ Eakin21 Mar '13 - 8:35 
    Generalyou are a hero ! manmemberbatsword4 Sep '10 - 19:17 
    GeneralBugmemberStKgn22 Apr '10 - 0:12 
    GeneralRe: BuggroupNorm .net22 Apr '10 - 0:28 
    GeneralNon administrator accountmembersaenz tomas24 Mar '10 - 7:08 
    GeneralMy vote of 1memberSheetal_Joshi8 Dec '09 - 6:10 
    Generalit is not a real multi-thread ? [modified]memberAdore C++4 Dec '08 - 10:51 
    Dear Sir
     
    look to the following part of ur code
     
    void CPing::Ping(UINT nRetries,LPCSTR pstrHost,HWND hWnd)
    {
     
    ...
    for (nLoop = 0; nLoop < nRetries; nLoop++)
    	{
    		// Send ICMP echo request
    		SendEchoRequest(rawSocket, &saDest);
    ....
     
    }
     
    so if i said ping 100 times , such 100 times will all done inside the ping func. itself which will be trigger by one thread
     
    UINT CPingThread::ThreadProc(void* lpParam)
    {
    	...
    .
    .
     
    if (dwWait == WAIT_OBJECT_0 + 1)
    			pThis->m_ping.Ping(pThis->m_nRetries,pThis->m_strHost, pThis->m_hWnd);
     
    .
    .
    
     
    the real mutli-thread we should have 100 thread each make one ping ??

    am i right??
     
    or there is misunderstanding Sigh | :sigh:
     
    thanks Smile | :)
     
    modified on Thursday, December 4, 2008 5:02 PM

    GeneralNot working on VistamemberTRK29 Oct '07 - 9:35 
    GeneralRe: Not working on VistamemberMember 446097211 Mar '08 - 4:30 
    GeneralRe: Not working on Vistamemberashishbhadiyadra13 Apr '09 - 19:14 
    GeneralRe: Not working on Vistamembercniculescu23 Sep '09 - 10:21 
    GeneralRe: Not working on Vistamemberliugh69819 Feb '10 - 22:45 
    GeneralRe: Not working on Vistamemberzhangchunming11 Mar '12 - 1:35 
    GeneralExcellent work!member428820 Aug '07 - 10:35 
    GeneralCalling OnTimer(); after calling socket(membermarreoragarn10 May '07 - 5:33 
    Generalwhen my firewall is open this ping program cannot ping to the web servermembersude6 Dec '06 - 16:10 
    GeneralRequestmemberrahul_s99915 Jun '06 - 14:30 
    GeneralRange maintainingmemberatunamatata13 Apr '06 - 21:10 
    GeneralRe: Range maintainingmemberwebmastersitesi5 Jan '09 - 18:15 
    GeneralWSAError: 10022memberkkooccuurr30 May '05 - 10:51 
    Generalsource filesmembersurfman1910 Feb '04 - 1:49 
    QuestionHow can I stop the ping-requestsussJessicaLampe13 Dec '03 - 5:39 
    QuestionHow to send and receive a broadcast pingmemberelsayed_mazen14 Oct '03 - 17:33 
    Generalping under XPmemberyyyKaktus29 Sep '03 - 19:22 
    GeneralRe: ping under XPmembermohamad14 May '04 - 23:38 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Permalink | Advertise | Privacy | Mobile
    Web04 | 2.6.130516.1 | Last Updated 16 Feb 2001
    Article Copyright 2000 by Norm .net
    Everything else Copyright © CodeProject, 1999-2013
    Terms of Use
    Layout: fixed | fluid