public String getServerConnectionString(int index) { ServiceRecord dbS = (ServiceRecord) serviceList.elementAt(index); String tempURL = dbS.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false); System.out.println("ServerConn:" + tempURL); // return the connection String return tempURL; }
public String getServerFriendlyName(int index) throws IOException { ServiceRecord dbS = (ServiceRecord) serviceList.elementAt(index); return dbS.getHostDevice().getFriendlyName(true); }