Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2007 17:57:33 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: how to write a raw socket server using UDP
Message-ID:  <fihia4$fpl$1@ger.gmane.org>
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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBBDAF8DD61680DA34176191A
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

sourav das wrote:
> hello all,
>=20
>      i m a new comer. i wrote a raw socket client=20
> using setsockopt (sock, IPPROTO_IP. IPHDRINCL, ....)using UDP. ihave fo=
llowed=20
> MS_Press network programming . it is showing 19 bytes sent successfully=
=2E when=20
> trying to send more than 19 bytes using     sendto(sock, ...) function =
, it is=20
> showing socket error on sending. i want to know how to write a raw sock=
et server=20
> program so that to catch and display the data sent by the  client.

I don't think you can do it with the socket API, try using bpf or netgrap=
h.


--------------enigBBDAF8DD61680DA34176191A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTEyDldnAQVacBcgRAkYEAJ4/KkHsf6CI70S8WfG6vpw6gDxyAQCg/Qm+
Vi81Zj1qFJxIg/Lk+jKFf/A=
=BbVQ
-----END PGP SIGNATURE-----

--------------enigBBDAF8DD61680DA34176191A--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fihia4$fpl$1>