Logo Search packages:      
Sourcecode: kdenetwork version File versions

int KInetSocketAddress::scopeId (  )  const

Returns the scope id this IPv6 socket is bound to.

the scope id, or 0 if this is not an IPv6 object

Definition at line 864 of file ksocketaddress.cpp.

References KNetwork::KSocketAddress::d.

#ifndef AF_INET6
  return 0;

  if (!d->invalid() && d->addr.in6->sin6_family == AF_INET6)
    return d->addr.in6->sin6_scope_id;
  return 0;

Generated by  Doxygen 1.6.0   Back to index