public boolean isRootDevice() { if (NT.isRootDevice(getNT()) == true) return true; // Thanks for Theo Beisch (11/01/04) if (ST.isRootDevice(getST()) == true) return true; return USN.isRootDevice(getUSN()); }
public void deviceNotifyReceived(SSDPPacket packet) { System.out.println(packet.toString()); if (packet.isDiscover() == true) { String st = packet.getST(); System.out.println("ssdp:discover : ST = " + st); } else if (packet.isAlive() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); String url = packet.getLocation(); System.out.println("ssdp:alive : uuid = " + usn + ", NT = " + nt + ", location = " + url); } else if (packet.isByeBye() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); System.out.println("ssdp:byebye : uuid = " + usn + ", NT = " + nt); } }
public boolean isRootDevice() { if (NT.isRootDevice(getNT()) == true) return true; // Thanks for Theo Beisch (11/01/04) if (ST.isRootDevice(getST()) == true) return true; return USN.isRootDevice(getUSN()); }
public boolean isRootDevice() { if (NT.isRootDevice(getNT()) == true) return true; // Thanks for Theo Beisch (11/01/04) if (ST.isRootDevice(getST()) == true) return true; return USN.isRootDevice(getUSN()); }
public void deviceNotifyReceived(SSDPPacket packet) { System.out.println(packet.toString()); if (packet.isDiscover() == true) { String st = packet.getST(); printConsole("ssdp:discover : ST = " + st); } else if (packet.isAlive() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); String url = packet.getLocation(); printConsole("ssdp:alive : uuid = " + usn + ", NT = " + nt + ", location = " + url); } else if (packet.isByeBye() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); printConsole("ssdp:byebye : uuid = " + usn + ", NT = " + nt); } updateTreeComp(); }
public void deviceNotifyReceived(SSDPPacket packet) { System.out.println(packet.toString()); if (packet.isDiscover() == true) { String st = packet.getST(); printConsole("ssdp:discover : ST = " + st); } else if (packet.isAlive() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); String url = packet.getLocation(); printConsole("ssdp:alive : uuid = " + usn + ", NT = " + nt + ", location = " + url); } else if (packet.isByeBye() == true) { String usn = packet.getUSN(); String nt = packet.getNT(); printConsole("ssdp:byebye : uuid = " + usn + ", NT = " + nt); } updateDeviceList(); }