if( NbtAddress.getWINSAddress() == null ) { resolveOrder = new int[2]; resolveOrder[0] = RESOLVER_LMHOSTS; tmp[i++] = RESOLVER_LMHOSTS; } else if( s.equalsIgnoreCase( "WINS" )) { if( NbtAddress.getWINSAddress() == null ) { if( log.level > 1 ) { log.println( "NetBIOS resolveOrder specifies WINS however the " +
if( NbtAddress.getWINSAddress() == null ) { resolveOrder = new int[2]; resolveOrder[0] = RESOLVER_LMHOSTS; tmp[i++] = RESOLVER_LMHOSTS; } else if( s.equalsIgnoreCase( "WINS" )) { if( NbtAddress.getWINSAddress() == null ) { if( log.level > 1 ) { log.println( "NetBIOS resolveOrder specifies WINS however the " +
if( NbtAddress.getWINSAddress() == null ) { resolveOrder = new int[2]; resolveOrder[0] = RESOLVER_LMHOSTS; tmp[i++] = RESOLVER_LMHOSTS; } else if( s.equalsIgnoreCase( "WINS" )) { if( NbtAddress.getWINSAddress() == null ) { if( log.level > 1 ) { log.println( "NetBIOS resolveOrder specifies WINS however the " +
if( NbtAddress.getWINSAddress() == null ) { resolveOrder = new int[2]; resolveOrder[0] = RESOLVER_LMHOSTS; tmp[i++] = RESOLVER_LMHOSTS; } else if( s.equalsIgnoreCase( "WINS" )) { if( NbtAddress.getWINSAddress() == null ) { if( log.level > 1 ) { log.println( "NetBIOS resolveOrder specifies WINS however the " +
NbtAddress[] getAllByName( Name name, InetAddress addr ) throws UnknownHostException { int n; NameQueryRequest request = new NameQueryRequest( name ); NameQueryResponse response = new NameQueryResponse(); request.addr = addr != null ? addr : NbtAddress.getWINSAddress(); request.isBroadcast = request.addr == null; if( request.isBroadcast ) { request.addr = baddr; n = RETRY_COUNT; } else { request.isBroadcast = false; n = 1; } do { try { send( request, response, RETRY_TIMEOUT ); } catch( IOException ioe ) { if( log.level > 1 ) ioe.printStackTrace( log ); throw new UnknownHostException( name.name ); } if( response.received && response.resultCode == 0 ) { return response.addrEntry; } } while( --n > 0 && request.isBroadcast ); throw new UnknownHostException( name.name ); } NbtAddress getByName( Name name, InetAddress addr )
NbtAddress[] getAllByName( Name name, InetAddress addr ) throws UnknownHostException { int n; NameQueryRequest request = new NameQueryRequest( name ); NameQueryResponse response = new NameQueryResponse(); request.addr = addr != null ? addr : NbtAddress.getWINSAddress(); request.isBroadcast = request.addr == null; if( request.isBroadcast ) { request.addr = baddr; n = RETRY_COUNT; } else { request.isBroadcast = false; n = 1; } do { try { send( request, response, RETRY_TIMEOUT ); } catch( IOException ioe ) { if( log.level > 1 ) ioe.printStackTrace( log ); throw new UnknownHostException( name.name ); } if( response.received && response.resultCode == 0 ) { return response.addrEntry; } } while( --n > 0 && request.isBroadcast ); throw new UnknownHostException( name.name ); } NbtAddress getByName( Name name, InetAddress addr )
NbtAddress[] getAllByName( Name name, InetAddress addr ) throws UnknownHostException { int n; NameQueryRequest request = new NameQueryRequest( name ); NameQueryResponse response = new NameQueryResponse(); request.addr = addr != null ? addr : NbtAddress.getWINSAddress(); request.isBroadcast = request.addr == null; if( request.isBroadcast ) { request.addr = baddr; n = RETRY_COUNT; } else { request.isBroadcast = false; n = 1; } do { try { send( request, response, RETRY_TIMEOUT ); } catch( IOException ioe ) { if( log.level > 1 ) ioe.printStackTrace( log ); throw new UnknownHostException( name.name ); } if( response.received && response.resultCode == 0 ) { return response.addrEntry; } } while( --n > 0 && request.isBroadcast ); throw new UnknownHostException( name.name ); } NbtAddress getByName( Name name, InetAddress addr )
NbtAddress[] getAllByName( Name name, InetAddress addr ) throws UnknownHostException { int n; NameQueryRequest request = new NameQueryRequest( name ); NameQueryResponse response = new NameQueryResponse(); request.addr = addr != null ? addr : NbtAddress.getWINSAddress(); request.isBroadcast = request.addr == null; if( request.isBroadcast ) { request.addr = baddr; n = RETRY_COUNT; } else { request.isBroadcast = false; n = 1; } do { try { send( request, response, RETRY_TIMEOUT ); } catch( IOException ioe ) { if( log.level > 1 ) ioe.printStackTrace( log ); throw new UnknownHostException( name.name ); } if( response.received && response.resultCode == 0 ) { return response.addrEntry; } } while( --n > 0 && request.isBroadcast ); throw new UnknownHostException( name.name ); } NbtAddress getByName( Name name, InetAddress addr )
name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d ) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else {
if (request.addr == NbtAddress.getWINSAddress()) NbtAddress.switchWINS(); request.addr = NbtAddress.getWINSAddress();
if (request.addr == NbtAddress.getWINSAddress()) NbtAddress.switchWINS(); request.addr = NbtAddress.getWINSAddress();
name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d ) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else {
if (request.addr == NbtAddress.getWINSAddress()) NbtAddress.switchWINS(); request.addr = NbtAddress.getWINSAddress();
if (request.addr == NbtAddress.getWINSAddress()) NbtAddress.switchWINS(); request.addr = NbtAddress.getWINSAddress();
name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d ) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else {
name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d ) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else {
addr = lookupServerOrWorkgroup( hostname, NbtAddress.getWINSAddress() ); } else { addr = NbtAddress.getByName( hostname, 0x20, null, NbtAddress.getWINSAddress() );
addr = lookupServerOrWorkgroup( hostname, NbtAddress.getWINSAddress() ); } else { addr = NbtAddress.getByName( hostname, 0x20, null, NbtAddress.getWINSAddress() );
addr = lookupServerOrWorkgroup( hostname, NbtAddress.getWINSAddress() ); } else { addr = NbtAddress.getByName( hostname, 0x20, null, NbtAddress.getWINSAddress() );
addr = lookupServerOrWorkgroup( hostname, NbtAddress.getWINSAddress() ); } else { addr = NbtAddress.getByName( hostname, 0x20, null, NbtAddress.getWINSAddress() );