lun apr 19 23:48:57 CEST 2010

uSock 0.3 released - with a damn cool ICMP traceroute

--

Yesterday  night I released the new version of uSock, the C++ li-
brary that makes easier managing raw, UDP or TCP socket  in  your
network applications. I introduced many improved since the earli-
er version, most of them on raw socket management:

- Introduced the method BaseSocket::getHostByAddr() for doing re-
verse DNS queries;

- Introduced the possibility to specify no network interface when
creating a RawSocket object. If no network  interface  is  speci-
fied,  the software search on its own the first available network
interface up and running;

- Introduced the possibility to specify not the number  of  bytes
to  be  read from the socket via RawSocket::read() method. If so,
the software allocates a buffer whose length is equal to the  to-
tal length field in the IP header.

Here  you can find a damn cool ICMP traceroute software that uses
uSock. You can notice the part strictly related to  the  building
of  the packet and sending over the network interface consists in
just 5 lines of code, while the remaining part is just related to
the application logic.

http://0x00.ath.cx/nopaste/1243810877

Here the link for the download of the static version:

http://0x00.ath.cx/prog/usock/

And  here the GIT link (I suggest you to download the latest ver-
sion from here, if possible, as it's updated more often):

http://github.com/BlackLight/uSock/tree/master

Sincerely, BlackLight


--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d? a? C++++ U++++ P++++ L+++++ E--- W+++ !w PS+++ PE-- Y++ PGP++ X++
R+ tv-- b+>+++ DI++ G++ e+++ h* r++ z**
------END GEEK CODE BLOCK------