Link to home
Start Free TrialLog in
Avatar of andtor
andtor

asked on

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

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
Avatar of sunnycoder
sunnycoder
Flag of India image

btw, it seems that winsock provides raw icmp sockets ... why not use them ?
Avatar of andtor
andtor

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial