how to write a raw socket server using UDP
Ivan Voras
ivoras at freebsd.org
Tue Nov 27 09:14:41 PST 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071127/8513bacb/signature.pgp
More information about the freebsd-hackers
mailing list