Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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 switch statements in the C programming language.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now