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: Good libraries for network programming (not asynchronous)
    ... Is there any good alternative to twisted for network programming which ... asynchronous model because it is hard to incorporate all other ... blocking libraries that I have to use. ... and be between me and a raw socket. ...
    (comp.lang.python)
  • Good libraries for network programming (not asynchronous)
    ... Is there any good alternative to twisted for network programming which ... asynchronous model because it is hard to incorporate all other ... blocking libraries that I have to use. ... and be between me and a raw socket. ...
    (comp.lang.python)
  • 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)