simple client/server problems

Started by
11 comments, last by etsuja 17 years, 10 months ago
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.
Advertisement
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)
hallelujah! I finally got it working. It was because I was running 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