Hi there,
I'm reading from a UDP socket in C# as follows:
EndPoint endPoint = new IPEndPoint(IPAddress.Any, 0);
int receivedBytes =
this.socket.ReceiveFrom(
this.receiveBuffer,
this.receiveBuffer.Length,
SocketFlags.None,
ref endPoint);
This provides me an EndPoint of the packet's sender. Does this EndPoint object uniquely identify the sender? If not, what would be a good scheme for doing so? A naive approach would be for a connecting client to generate a random uint and include it in all of that packets (handling the very very rare chance of collision), but perhaps there's a smarter way?