Solved

free libraries for writing my own ICMP packets and sockets in C?

Posted on 2003-11-29
6
222 Views
Last Modified: 2010-04-15
Are there any free libraries for writing my own ICMP packets and sockets in C for Windows, and can i compile them with gcc?
I need to use my own trace route in a application of mine so it must not be any restrictive licenses since my program is shareware.

cheers
Andreas
0
Comment
Question by:andtor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9842085
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9842104
btw, it seems that winsock provides raw icmp sockets ... why not use them ?
0
 

Author Comment

by:andtor
ID: 9843470
Im quite new to C, i've got several years of expirience with Java, but java does not support icmp sockets. All i need is a console program that can do pings to arbitrary addresses and with variable TTL (so i can do a trace route). Can i use winsock for this and can i use it in my comercial program without restrictions? Where can i get the winsock libraries?
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 9849454
>Can i use winsock for this and can i use it in my comercial program without restrictions?
not the above ones ...

>Where can i get the winsock libraries?
Winsock is part of standard windows SDK AFAIK

>All i need is a console program that can do pings to arbitrary addresses and with variable TTL
these are free, but read the lincensing ... I have not read any
http://codeproject.com/internet/ctraceroute.asp         
http://www.traceroute.org/#source%20code
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question