🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

sendto not sending??

Started by
0 comments, last by Galileo430 22 years, 10 months ago
For some reason my sendto command is not sending.. It says it sends the correct number of bytes but nothing gets sent.. I know cause my netstat -s doesn''t register any new datagrams being sent.. Here is the offending source,
  
UINT nStuff;

nStuff = sendto(g_socConnection, bySendBuffer, 5, NULL, &adrRecv, nSize);
			
if (nStuff != 5)
{
     Output("Error! Sending!"); // This does not get tripped

}
  
I got no idea what''s wrong..
------------------------------------------------------------I wrote the best video game ever, then I woke up...
Advertisement
Maybe the receiver''s address is somehow invalid. This could lead to a situation where sendto hands the packet to the network layer and gets an OK, but when the network layer continues to process the packet, it''s dropped for some reason (firewall settings, invalid inet address, ...).

cu,
Prefect

One line of sourcecode says more than a thousand words.
Widelands - laid back, free software strategy

This topic is closed to new replies.

Advertisement