Re: how to write a raw socket server using UDP



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: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • 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: how to write a raw socket server using UDP
    ... i wrote a raw socket client using setsockopt (sock, ... when trying to send more than 19 bytes using sendtofunction, 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. ...
    (freebsd-hackers)
  • Re: RAW SOCKET
    ... Richard Steven Volume 1: Network programming ... --raxit sheth ... anybody please tell me some useful sites/books for RAW SOCKET ...
    (comp.lang.c)