Class IPv6MulticastAddressFactory
java.lang.Object
org.sblim.slp.internal.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddress
get
(int pScope, int pSrvHash) getstatic InetAddress
get
(int pScope, SLPMessage pMsg) getstatic InetAddress
get
(int pScope, ServiceType pSrvType) getstatic InetAddress
getSrvLocAddress
(int pScope) getSrvLocAddressstatic 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 invalid input: '&' h); // round to a range of 0-1023 }
-
Constructor Details
-
IPv6MulticastAddressFactory
public IPv6MulticastAddressFactory()
-
-
Method Details
-
getSrvLocAddress
getSrvLocAddress- Parameters:
pScope
-- Returns:
- InetAddress
- Throws:
UnknownHostException
-
get
get- Parameters:
pScope
-pMsg
-- Returns:
- InetAddress
- Throws:
UnknownHostException
-
get
get- Parameters:
pScope
-pSrvType
-- Returns:
- InetAddress
- Throws:
UnknownHostException
-
get
get- Parameters:
pScope
-pSrvHash
-- Returns:
- InetAddress
- Throws:
UnknownHostException
-
getSrvTypeHash
unsigned long slp_hash(const char *pc, unsigned int len) { unsigned long h = 0; while (len-- != 0) { h *= 33; h += *pc++; } return (0x3FF invalid input: '&' h); // round to a range of 0-1023 }
- Parameters:
pServiceType
-- Returns:
- int
-