sendto error

Nikhil Kulkarni nkulkarn@cs.stevens-tech.edu
Wed Mar 10 11:40:00 GMT 2004


Hello,

I have created a RAW socket with a IP/TCP header of my own. I want to send
it using sendto.

When I use sendto, I get an error, "sendto:Invalid argument". Can someone
tell me, why do I get this error. I have used htons/l on all the numeric
arguments.

If you need to see the code, please let me know.

Thanks,
Nikhil.



More information about the Gcc-help mailing list