Logo Search packages:      
Sourcecode: kdenetwork version File versions

void KServerSocket::setResolutionEnabled ( bool  enable  ) 

Enables or disables name resolution. If this flag is set to true, the bind operation will trigger name lookup operations (i.e., converting a hostname into its binary form). If the flag is set to false, those operations will instead try to convert a string representation of an address without attempting name resolution.

This is useful, for instance, when IP addresses are in their string representation (such as "") or come from other sources like KSocketAddress.

enable whether to enable

Definition at line 110 of file kserversocket.cpp.

  if (enable)
    d->resolver.setFlags(d->resolver.flags() & ~KResolver::NoResolve);
    d->resolver.setFlags(d->resolver.flags() | KResolver::NoResolve);

Generated by  Doxygen 1.6.0   Back to index