NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if ( pathInfo == null || server == null ) { String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb);
NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if ( pathInfo == null || server == null ) { String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb);
@Override public NbtAddress[] getNbtAllByAddress ( NetbiosAddress addr ) throws UnknownHostException { try { NbtAddress[] addrs = getNodeStatus(addr); cacheAddressArray(addrs); return addrs; } catch ( UnknownHostException uhe ) { throw new UnknownHostException( "no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2) + ( ( ( addr.getName().getScope() == null ) || ( addr.getName().getScope().isEmpty() ) ) ? " with no scope" : " with scope " + addr.getName().getScope() ) + " for host " + addr.getHostAddress()); } }
@Override public NbtAddress[] getNbtAllByAddress ( NetbiosAddress addr ) throws UnknownHostException { try { NbtAddress[] addrs = getNodeStatus(addr); cacheAddressArray(addrs); return addrs; } catch ( UnknownHostException uhe ) { throw new UnknownHostException( "no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2) + ( ( ( addr.getName().getScope() == null ) || ( addr.getName().getScope().isEmpty() ) ) ? " with no scope" : " with scope " + addr.getName().getScope() ) + " for host " + addr.getHostAddress()); } }