Solved

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

Posted on 2003-11-29
6
223 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

Industry Leaders: 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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures 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.

632 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