Re: how to write a raw socket server using UDP



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
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: regarding "perils of java schools"
    ... design patterns. ... Beyond the C++ language itself, I expect a programmer to have more ... Your original message also mentioned "Network programming." ...
    (comp.programming)
  • Re: regarding "perils of java schools"
    ... design patterns. ... Beyond the C++ language itself, I expect a programmer to have more ... Your original message also mentioned "Network programming." ...
    (comp.programming)
  • how to write a raw socket server using UDP
    ... i wrote a raw socket client ... MS_Press network programming. ... it is showing 19 bytes sent successfully. ... i want to know how to write a raw socket server ...
    (freebsd-hackers)
  • Re: TCP/IP send, sendfile, RAW
    ... I'am new to Linux normaly i do programming for RTOS. ... I tried sending with an UDP socket and RAW socket. ... The RAW socket gives the best result till now 50 MBits throughtput. ... Get netcat source and read it. ...
    (Linux-Kernel)
  • Re: becoming a system programmer
    ... Try Debian for rock-solid stability but remember softwares collection on ... system kernels [Linux etc ..]. ... having Richards book Vol 1 - Unix Network Programming]. ...
    (comp.programming)