Adam D. Moss
adam at gimp.org
Tue Apr 11 06:38:54 PDT 2006
siquan at ms16.hinet.net wrote:
> If I use this funciton to get the information while the new client
> The program will delay a few seconds.
> On other hand, if I take it away, the response between client and
> server is faster than before.
> Can you give me some ideas to slove this problem or understand it
> for details?
Resolving a hostname is usually a blocking function.
It's best to pass pre-resolved IPs to ENet if you
don't want to block. I use the 'ares' library for non-blocking
More information about the ENet-discuss