net.sbbi.upnp.samples
Class MyDiscoveryEventsHandler
java.lang.Object
net.sbbi.upnp.samples.MyDiscoveryEventsHandler
- All Implemented Interfaces:
- DiscoveryEventHandler
public class MyDiscoveryEventsHandler
- extends Object
- implements DiscoveryEventHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyDiscoveryEventsHandler
public MyDiscoveryEventsHandler()
eventSSDPAlive
public void eventSSDPAlive(String usn,
String udn,
String nt,
String maxAge,
URL location)
- Description copied from interface:
DiscoveryEventHandler
- Called when a device joins the network or advertise it is still alive
- Specified by:
eventSSDPAlive in interface DiscoveryEventHandler
- Parameters:
usn - the device USN (udn::nt)udn - the device UDNnt - the device NTmaxAge - the device maxAgelocation - the device location
eventSSDPByeBye
public void eventSSDPByeBye(String usn,
String udn,
String nt)
- Description copied from interface:
DiscoveryEventHandler
- Called when a device is leaving the network
- Specified by:
eventSSDPByeBye in interface DiscoveryEventHandler
- Parameters:
usn - the device USN (udn::nt)udn - the device UDNnt - the device NT
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.