out.write( buffer, 0, ssp0.writeWireFormat( buffer, 0 )); setSoTimeout( soTimeout ); type = ssp0.readPacketType( in, buffer, 0 ); } catch( IOException ioe ) { close(); throw ioe; case SessionServicePacket.NEGATIVE_SESSION_RESPONSE: int errorCode = (int)( in.read() & 0xFF ); close(); throw new NbtException( NbtException.ERR_SSN_SRVC, errorCode ); case -1: throw new NbtException( NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED ); default: close(); throw new NbtException( NbtException.ERR_SSN_SRVC, 0 );
public NbtSocket( NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort ) throws IOException { super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ), localAddr, localPort ); this.address = address; if( calledName == null ) { this.calledName = address.hostName; } else { this.calledName = new Name( calledName, 0x20, null ); } soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT ); connect(); }
type = ssp0.readPacketType( in, buffer, 0 ); } catch( IOException ioe ) { close(); throw ioe; case SessionServicePacket.NEGATIVE_SESSION_RESPONSE: int errorCode = (int)( in.read() & 0xFF ); close(); throw new NbtException( NbtException.ERR_SSN_SRVC, errorCode ); case -1: throw new NbtException( NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED ); default: close(); throw new NbtException( NbtException.ERR_SSN_SRVC, 0 );
public NbtSocket( NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort ) throws IOException { super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ), localAddr, localPort ); this.address = address; if( calledName == null ) { this.calledName = address.hostName; } else { this.calledName = new Name( calledName, 0x20, null ); } soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT ); connect(); }
out.write( buffer, 0, ssp0.writeWireFormat( buffer, 0 )); setSoTimeout( soTimeout ); type = ssp0.readPacketType( in, buffer, 0 ); } catch( IOException ioe ) { close(); throw ioe; case SessionServicePacket.NEGATIVE_SESSION_RESPONSE: int errorCode = (int)( in.read() & 0xFF ); close(); throw new NbtException( NbtException.ERR_SSN_SRVC, errorCode ); case -1: throw new NbtException( NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED ); default: close(); throw new NbtException( NbtException.ERR_SSN_SRVC, 0 );
public NbtSocket( NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort ) throws IOException { super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ), localAddr, localPort ); this.address = address; if( calledName == null ) { this.calledName = address.hostName; } else { this.calledName = new Name( calledName, 0x20, null ); } soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT ); connect(); }
out.write( buffer, 0, ssp0.writeWireFormat( buffer, 0 )); setSoTimeout( soTimeout ); type = ssp0.readPacketType( in, buffer, 0 ); } catch( IOException ioe ) { close(); throw ioe; case SessionServicePacket.NEGATIVE_SESSION_RESPONSE: int errorCode = (int)( in.read() & 0xFF ); close(); throw new NbtException( NbtException.ERR_SSN_SRVC, errorCode ); case -1: throw new NbtException( NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED ); default: close(); throw new NbtException( NbtException.ERR_SSN_SRVC, 0 );
public NbtSocket( NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort ) throws IOException { super( address.getInetAddress(), ( port == 0 ? SSN_SRVC_PORT : port ), localAddr, localPort ); this.address = address; if( calledName == null ) { this.calledName = address.hostName; } else { this.calledName = new Name( calledName, 0x20, null ); } soTimeout = Config.getInt( "jcifs.netbios.soTimeout", DEFAULT_SO_TIMEOUT ); connect(); }