net.sbbi.upnp.samples
Class MyDiscoveryEventsHandler
java.lang.Object
net.sbbi.upnp.samples.MyDiscoveryEventsHandler
- All Implemented Interfaces:
- DiscoveryEventHandler
- public class MyDiscoveryEventsHandler
- extends java.lang.Object
- implements DiscoveryEventHandler
Method Summary |
void |
eventSSDPAlive(java.lang.String usn,
java.lang.String udn,
java.lang.String nt,
java.lang.String maxAge,
java.net.URL location)
Called when a device joins the network or advertise it is still alive |
void |
eventSSDPByeBye(java.lang.String usn,
java.lang.String udn,
java.lang.String nt)
Called when a device is leaving the network |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyDiscoveryEventsHandler
public MyDiscoveryEventsHandler()
eventSSDPAlive
public void eventSSDPAlive(java.lang.String usn,
java.lang.String udn,
java.lang.String nt,
java.lang.String maxAge,
java.net.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(java.lang.String usn,
java.lang.String udn,
java.lang.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(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005 SuperBonBon Industries. All Rights Reserved.