how to write a raw socket server using UDP

sourav das cyber.spike at yahoo.com
Tue Nov 27 03:06:03 PST 2007


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.

 

thanks a lot,

keep fit,

 

regards,

spike.




      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


More information about the freebsd-hackers mailing list