c - Better have one long or multiple short UDP sockets? -
i want send regularly udp messages through sockets.
is better use 1 socket, or recreate socket each message , close them after?
since udp stateless, change anything?
if you're expecting receive on socket, had better exist entire time on you're expecting receive.
if you're expecting send multiple messages without receiving replies have design mistake, there doesn't seem reason why keep opening , closing udp sockets purpose. surely makes more sense keep socket open long necessary?
Comments
Post a Comment