Advertisement

sendto not sending??

Started by August 31, 2001 10:54 PM
0 comments, last by Galileo430 23 years, 4 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...
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