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.