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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] sourav das wrote: > 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 successfully. when > trying to send more than 19 bytes using sendto(sock, ...) function , it is > showing socket error on sending. i want to know how to write a raw socket server > 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 netgraph. [-- Attachment #2 --] -----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-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fihia4$fpl$1>
