The Line:
if(test = recvfrom(UDPSocket, inbuffer, 256, 0, NULL, &len) >= 0)
change to:
if((test = recvfrom(UDPSocket, inbuffer, 256, 0, NULL, &len)) >= 0)
NOTE: The added parens. Order of operations.
simple client/server problems
I don't know if routing is an issue since I don't have a router. are they not getting packets since I don't have a send and a recieve in both of them? I tried putting winsock.h in head of the windows header and the same stuff happens and I'm linking to ws2_32.lib, is it possible it's not working because I'm trying it with the debug version?
Artist 1st - Programmer 2nd(I'll get some material linked here sometime to support these claims, haha)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement