the 2 most common cause for sendto() failure on raw sockets are:
- badly initialized IP header. note that ip_len and ip_off must be in
host byte order. all other fields must be in net byte order.
- badly initialized destination address.
writing a raw socket server is not much different than ot
On Tue, Nov 27, 2007 at 01:31:22AM -0800, sourav das wrote:
> 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 th
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
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 send
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
5 matches
Mail list logo