Logo Search packages:      
Sourcecode: kdenetwork version File versions

bool KInetSocketAddress::setScopeId ( int  scopeid  ) 

Sets the scope id for this socket if this is IPv6.

scopeid the scope id
true if successful, false otherwise

Definition at line 498 of file ksockaddr.cpp.

References KInetSocketAddressPrivate::sockfamily.

#if defined(AF_INET6) && defined(HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID)
  if (d->sockfamily == AF_INET6)
      d->sin6.sin6_scope_id = scopeid;
      return true;
  return false;

Generated by  Doxygen 1.6.0   Back to index