Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2007 19:17:03 +0100
From:      Thierry Herbelot <thierry.herbelot@laposte.net>
To:        freebsd-hackers@freebsd.org
Cc:        sourav das <cyber.spike@yahoo.com>
Subject:   Re: how to write a raw socket server using UDP
Message-ID:  <200711271917.05085.thierry.herbelot@laposte.net>
In-Reply-To: <360166.14926.qm@web45613.mail.sp1.yahoo.com>
References:  <360166.14926.qm@web45613.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711271917.05085.thierry.herbelot>