Click here to Skip to main content
6,630,289 members and growing! (23,215 online)
Email Password   helpLost your password?
General Programming » Internet / Network » General     Intermediate

Using IP Helper API’s

By Farooque Khan

This article demonstrates the usage of the Internet Protocol Helper API's
VC6Win2K, Visual Studio, MFC, Dev
Posted:31 Oct 2001
Views:234,499
Bookmarked:25 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
21 votes for this article.
Popularity: 3.58 Rating: 2.71 out of 5
3 votes, 30.0%
1
2 votes, 20.0%
2
1 vote, 10.0%
3

4
4 votes, 40.0%
5

Sample Image - TCPInfo.jpg

Introduction

Internet Protocol Helper (IP Helper) is an API that assists in the network administration of the local computer. You can use IP Helper to programmatically retrieve information about the network configuration of the local computer, and to modify that configuration. This article and the associated code demonstrate usage of some of the API’s. The sample application is developed using these API's and can be used for following purposes.

  1. Getting the TCP statistics such as active connections, segments sent and received etc.

  2. Getting the UDP statistics such as datagrams sent and received etc.

  3. Getting the IP statistics such as Reassembly time outs, invalid datagrams sent or received etc.

  4. Getting the ICMP statistics such as total ICMP messages sent or received, echo requests sent and echo replies received etc.

  5. Getting the active TCP connections with local and remote addresses and ports.

  6. Getting the active UDP connections with local address and ports.

These are some of the functions IP Helper API’s can do. In the sample application following API's were used.

  1. GetTcpStatistics()

    This API fills a MIB_TCPSTATS structure with TCP statistics. See sample application for usage.

  2. GetUdpStatistics()

    This API fills a MIB_UDPSTATS structure with UDP statistics. See sample application for usage.

  3. GetIpStatistics()

    This API fills a MIB_IPSTATS structure with IP statistics. See sample application for usage.

  4. GetIcmpStatistics()

    This API fills a MIB_ICMP structure with ICMP statistics about outgoing and incoming ICMP messages. See the sample application for usage.

  5. GetTcpTable()

    This API fills a buffer with the information about active TCP connections. Apart from the status of the connections (Established, closing etc.) the local and remote addresses and ports involved are also returned. See the sample application for the usage of this API.

  6. GetUdpTable()

    This API fills a buffer with UDP connections information. Only the local address and ports of the connection are returned. See the sample application for the usage of this API

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

Farooque Khan


Member

Location: United States United States

Other popular Internet / Network articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 22 of 22 (Total in Forum: 22) (Refresh)FirstPrevNext
Generalhelp with the header files Pinmemberbluebarnacle18:51 1 Feb '06  
GeneralRe: help with the header files PinmemberNurrizki Brahmantyo20:01 23 Jun '07  
GeneralSetTcpEntry PinmemberVitoto11:05 19 May '05  
Generalwhere can you download IP Helper ? Pinmemberorenboskila7:24 7 Jul '04  
GeneralRe: where can you download IP Helper ? PinmemberThatsAlok3:25 12 Feb '05  
GeneralPoor Code! I cannot compile the project! I cannot find the lib file and its head file! Pinmemberbaogangfeng17:56 13 Jun '04  
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberThatsAlok3:27 12 Feb '05  
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberAndre Oliveira2:52 8 May '06  
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberThatsAlok1:41 10 May '06  
GeneralClosing a port PinmemberwildUK9:57 29 Sep '03  
GeneralRe: Closing a port PinmemberFarooque19:36 29 Sep '03  
GeneralRe: Closing a port PinmemberVitoto11:03 19 May '05  
GeneralWhere's the article? PinmemberPaul A. Howes10:38 18 Nov '02  
Generalgetting infos about the listening process PinmemberChristophe Renard3:55 20 Nov '01  
GeneralRe: getting infos about the listening process PinsussAnonymous6:51 11 Nov '02  
GeneralA second to the "missing info" PinmemberPeter Weyzen13:06 2 Nov '01  
GeneralRe: A second to the "missing info" Pinmemberniverson12:53 15 Aug '02  
GeneralMissing Information... PinmemberDaniel Madden5:11 1 Nov '01  
GeneralRe: Missing Information... PinmemberFarooque Khan18:54 5 Nov '01  
GeneralRe: Missing Information... PinmemberDaniel Madden1:29 16 Feb '02  
GeneralRe: Missing Information... PinmemberAnonymous18:55 15 Feb '02  
GeneralRe: Missing Information... PinmemberAnonymous18:55 15 Feb '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 31 Oct 2001
Editor: Chris Maunder
Copyright 2001 by Farooque Khan
Everything else Copyright © CodeProject, 1999-2009
Web22 | Advertise on the Code Project