I've made my own client/server before with TCP, and now I'm trying to make one with UDP but I'm having some trouble.
How can I identify where the UDP connection comes from? The function SocketRemoteIP(udpsocket) always seem to be zero, even if there's a connection active on the socket.
In TCP I would use SocketAccept(mytcpsocket) to check if a connection had been made, but this does not, according to the docs, work with UDP.
I just wanna know basically, if it's possible in some way to distinguish connections to an UDP socket. If I want to make a multiplayer game, it would be nice to know who or what is sending to the socket.. Am I making sense?
How can I identify where the UDP connection comes from? The function SocketRemoteIP(udpsocket) always seem to be zero, even if there's a connection active on the socket.
In TCP I would use SocketAccept(mytcpsocket) to check if a connection had been made, but this does not, according to the docs, work with UDP.
I just wanna know basically, if it's possible in some way to distinguish connections to an UDP socket. If I want to make a multiplayer game, it would be nice to know who or what is sending to the socket.. Am I making sense?