|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sblim.slp.internal.IPv6MulticastAddressFactory
public class IPv6MulticastAddressFactory
SVRLOC group-id : FF0X:0:0:0:0:0:0:116 - SRVTYPERQST Service Type Request - ATTRRQST Attribute Request - UA sends too SVRLOC-DA group-id : FF0X:0:0:0:0:0:0:123 - SRVRQST for the "service:directory-agent" service type - UA sends too 1000 - 13FF: SRVRQST : FF0X:0:0:0:0:0:1:.... - the ID is the hashcode of the Service Type string used in the SrvRqst. - UA sends too
| Constructor Summary | |
|---|---|
IPv6MulticastAddressFactory()
|
|
| Method Summary | |
|---|---|
static java.net.InetAddress |
get(int pScope,
int pSrvHash)
get |
static java.net.InetAddress |
get(int pScope,
ServiceType pSrvType)
get |
static java.net.InetAddress |
get(int pScope,
SLPMessage pMsg)
get |
static java.net.InetAddress |
getSrvLocAddress(int pScope)
getSrvLocAddress |
static int |
getSrvTypeHash(ServiceType pServiceType)
unsigned long slp_hash(const char *pc, unsigned int len) { unsigned long h = 0; while (len-- != 0) { h *= 33; h += *pc++; } return (0x3FF & h); // round to a range of 0-1023 } |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPv6MulticastAddressFactory()
| Method Detail |
|---|
public static java.net.InetAddress getSrvLocAddress(int pScope)
throws java.net.UnknownHostException
pScope -
java.net.UnknownHostException
public static java.net.InetAddress get(int pScope,
SLPMessage pMsg)
throws java.net.UnknownHostException
pScope - pMsg -
java.net.UnknownHostException
public static java.net.InetAddress get(int pScope,
ServiceType pSrvType)
throws java.net.UnknownHostException
pScope - pSrvType -
java.net.UnknownHostException
public static java.net.InetAddress get(int pScope,
int pSrvHash)
throws java.net.UnknownHostException
pScope - pSrvHash -
java.net.UnknownHostExceptionpublic static int getSrvTypeHash(ServiceType pServiceType)
unsigned long slp_hash(const char *pc, unsigned int len) {
unsigned long h = 0;
while (len-- != 0) {
h *= 33;
h += *pc++;
}
return (0x3FF & h); // round to a range of 0-1023
}
pServiceType -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||