how to write a raw socket server using UDP
Thierry Herbelot
thierry.herbelot at laposte.net
Tue Nov 27 10:42:43 PST 2007
Le Tuesday 27 November 2007, sourav das a écrit :
> hello all,
>
> i m a new comer. i wrote a raw socket client
> using setsockopt (sock, IPPROTO_IP. IPHDRINCL, ....)using UDP. ihave
> followed MS_Press network programming . it is showing 19 bytes sent
is this the best reference you found ? a better text is "Unix network
programming" by Stevens.
the canonical program using raw socket is ping, and you can find its source in
the FreeBSD src tree
Happy reading
TfH
More information about the freebsd-hackers
mailing list