I'm making a sort of 'query' tool for game servers, to get some information etc. It works pretty well, except when you fill in an hostname which doesn't exists, it keeps hanging at the recvfrom() call. My GUI blocks and than I must kill the app.
UDP Sockets are unconnected, so I can't find a way to check if the given hostname is online. Does somebody knows it?