@Override public NameServiceClient getNameServiceClient () { return this.delegate.getNameServiceClient(); }
@Override public NameServiceClient getNameServiceClient () { return this.delegate.getNameServiceClient(); }
void checkNodeStatusData ( CIFSContext tc ) throws UnknownHostException { if ( this.isDataFromNodeStatus == false ) { tc.getNameServiceClient().getNbtAllByAddress(this); } }
void checkNodeStatusData ( CIFSContext tc ) throws UnknownHostException { if ( this.isDataFromNodeStatus == false ) { tc.getNameServiceClient().getNbtAllByAddress(this); } }
@Override public void run () { try { this.ans = this.tc.getNameServiceClient().getNbtByName(this.host, this.type, this.scope, this.svr); } catch ( UnknownHostException ex ) { this.uhe = ex; } catch ( Exception ex ) { this.uhe = new UnknownHostException(ex.getMessage()); } finally { synchronized ( this.sem ) { this.sem.count--; this.sem.notify(); } } }
@Override public void run () { try { this.ans = this.tc.getNameServiceClient().getNbtByName(this.host, this.type, this.scope, this.svr); } catch ( UnknownHostException ex ) { this.uhe = ex; } catch ( Exception ex ) { this.uhe = new UnknownHostException(ex.getMessage()); } finally { synchronized ( this.sem ) { this.sem.count--; this.sem.notify(); } } }
void checkData ( CIFSContext tc ) throws UnknownHostException { if ( this.hostName.isUnknown() ) { tc.getNameServiceClient().getNbtAllByAddress(this); } }
void checkData ( CIFSContext tc ) throws UnknownHostException { if ( this.hostName.isUnknown() ) { tc.getNameServiceClient().getNbtAllByAddress(this); } }
Address[] list = getTransportContext().getNameServiceClient().getNbtAllByName(domain, 0x1C, null, null); this.dcListExpiration = now + this.netbiosCacheTimeout * 1000L; if ( list != null && list.length > 0 ) {
Address[] list = getTransportContext().getNameServiceClient().getNbtAllByName(domain, 0x1C, null, null); this.dcListExpiration = now + this.netbiosCacheTimeout * 1000L; if ( list != null && list.length > 0 ) {
if ( server != null && server.length() > 0 ) { this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(server); Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress()); throw uhe; this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false);
if ( server != null && server.length() > 0 ) { this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(server); Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress()); throw uhe; this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false);
String host = tc.getNameServiceClient().getLocalHost().getHostName(); if ( host != null ) { try {
String host = tc.getNameServiceClient().getLocalHost().getHostName(); if ( host != null ) { try {
/** * Creates a Type-1 message using default values from the current * environment. * * @param tc * context to use */ public Type1Message ( CIFSContext tc ) { this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName()); }
/** * Creates a Type-1 message using default values from the current * environment. * * @param tc * context to use */ public Type1Message ( CIFSContext tc ) { this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName()); }
addrs = tc.getNameServiceClient().getNodeStatus(this); if ( this.getNameType() == 0x1D ) { for ( int i = 0; i < addrs.length; i++ ) {
addrs = tc.getNameServiceClient().getNodeStatus(this); if ( this.getNameType() == 0x1D ) { for ( int i = 0; i < addrs.length; i++ ) {
/** * Creates a Type-3 message using default values from the current * environment. * * @param tc * context to use */ public Type3Message ( CIFSContext tc ) { setFlags(getDefaultFlags(tc)); setDomain(tc.getConfig().getDefaultDomain()); setUser(tc.getConfig().getDefaultUsername()); setWorkstation(tc.getNameServiceClient().getLocalHost().getHostName()); }
/** * Creates a Type-3 message using default values from the current * environment. * * @param tc * context to use */ public Type3Message ( CIFSContext tc ) { setFlags(getDefaultFlags(tc)); setDomain(tc.getConfig().getDefaultDomain()); setUser(tc.getConfig().getDefaultUsername()); setWorkstation(tc.getNameServiceClient().getLocalHost().getHostName()); }