|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.jmdns.DNSConstants
|
+--javax.jmdns.JmDNS
mDNS implementation in Java.
| Field Summary | |
static java.lang.String |
VERSION
|
| Constructor Summary | |
JmDNS()
Create an instance of JmDNS. |
|
JmDNS(java.net.InetAddress addr)
Create an instance of JmDNS and bind it to a specific network interface given its IP-address. |
|
| Method Summary | |
void |
addServiceListener(java.lang.String type,
ServiceListener listener)
Listen for services of a given type. |
void |
addServiceTypeListener(ServiceTypeListener listener)
Listen for service types. |
void |
close()
Close down jmdns. |
java.net.InetAddress |
getInterface()
Return the address of the interface to which this instance of JmDNS is bound. |
ServiceInfo |
getServiceInfo(java.lang.String type,
java.lang.String name)
Get service information. |
ServiceInfo |
getServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
Get service information. |
void |
registerService(ServiceInfo info)
Register a service. |
void |
registerServiceType(java.lang.String type)
Register a service type. |
void |
removeServiceListener(ServiceListener listener)
Remove listener for services of a given type. |
void |
removeServiceTypeListener(ServiceTypeListener listener)
Remove listener for service types. |
void |
requestServiceInfo(java.lang.String type,
java.lang.String name)
Request service information. |
void |
requestServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
Request service information. |
void |
unregisterAllServices()
Unregister a service. |
void |
unregisterService(ServiceInfo info)
Unregister a service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String VERSION
| Constructor Detail |
public JmDNS()
throws java.io.IOException
public JmDNS(java.net.InetAddress addr)
throws java.io.IOException
| Method Detail |
public java.net.InetAddress getInterface()
throws java.io.IOException
java.io.IOException
public ServiceInfo getServiceInfo(java.lang.String type,
java.lang.String name)
type - full qualified service type, such as _http._tcp.local..name - full qualified service name, such as foobar._http._tcp.local..
public ServiceInfo getServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
type - full qualified service type, such as _http._tcp.local..name - full qualified service name, such as foobar._http._tcp.local..timeout - timeout in milliseconds
public void requestServiceInfo(java.lang.String type,
java.lang.String name)
public void requestServiceInfo(java.lang.String type,
java.lang.String name,
int timeout)
public void addServiceTypeListener(ServiceTypeListener listener)
throws java.io.IOException
listener - listener for service types
java.io.IOExceptionpublic void removeServiceTypeListener(ServiceTypeListener listener)
listener - listener for service types
public void addServiceListener(java.lang.String type,
ServiceListener listener)
_http._tcp.local..
type - full qualified service type, such as _http._tcp.local..listener - listener for service updatespublic void removeServiceListener(ServiceListener listener)
listener - listener for service updates
public void registerService(ServiceInfo info)
throws java.io.IOException
java.io.IOExceptionpublic void unregisterService(ServiceInfo info)
public void unregisterAllServices()
public void registerServiceType(java.lang.String type)
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||