ANONYMOUS wrote:
> My current implementation blocks new udp connections while waiting for acknowledgements from neighbouring hosts to come back for a specific frame. this will slow down response time, will this get marked down?
There's no emphasis on speed or great efficiency in this project,
but I'm surprised to read that you're using UDP datagrams in a connected manner (guessing you're using
send()
rather than
sendto()
).
I've found it much easier to both send and receive datagrams using the same (not-connected) socket, and use the sender's address (given by
recvfrom()
) to determine which neighbour sent it.