Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

743 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

13 Experts available now in Live!

Get 1:1 Help Now