Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for GetAddress (0.06 sec)

  1. src/main/java/jcifs/smb1/netbios/NbtAddress.java

        }
    
    
    /** 
     * Returns the raw IP address of this NbtAddress. The result is in network
     * byte order: the highest order byte of the address is in getAddress()[0].
     *
     * @return a four byte array
     */ 
    
        public byte[] getAddress() {    
            byte[] addr = new byte[4];
    
            addr[0] = (byte)(( address >>> 24 ) & 0xFF );
            addr[1] = (byte)(( address >>> 16 ) & 0xFF );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 30.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/NameServiceClientImpl.java

             */
            String localHostname = tc.getConfig().getNetbiosHostname();
            if ( localHostname == null || localHostname.length() == 0 ) {
                byte[] addr = localInetAddress.getAddress();
                localHostname = "JCIFS" + ( addr[ 2 ] & 0xFF ) + "_" + ( addr[ 3 ] & 0xFF ) + "_"
                        + Hexdump.toHexString((int) ( Math.random() * 0xFF ), 2);
            }
    
            /*
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 14 14:26:22 UTC 2022
    - 38.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                        synchronized( LOCK ) {
                            request.nameTrnId = getNextNameTrnId();
                            nid = new Integer( request.nameTrnId );
    
                            out.setAddress( request.addr );
                            out.setLength( request.writeWireFormat( snd_buf, 0 ));
                            response.received = false;
    
                            responseTable.put( nid, response );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 17.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/UniAddress.java

                return calledName;
            }
            return null;
        }
    
        /**
         * Return the underlying <tt>NbtAddress</tt> or <tt>InetAddress</tt>.
         */
    
        public Object getAddress() {
            return addr;
        }
    
        /**
         * Return the hostname of this address such as "MYCOMPUTER".
         */
    
        public String getHostName() {
            if( addr instanceof NbtAddress ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 16.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/FileLocationTest.java

        @Test
        public void testSetAddress () throws MalformedURLException, CIFSException {
            try ( SmbResource r = new SmbFile("smb://TESTING/IPC$/?address=1.2.3.4", getContext()) ) {
                Address a = r.getLocator().getAddress();
                assertEquals("1.2.3.4", a.getHostAddress());
            }
        }
    
    
        @Test
        @Ignore
        public void testRelativeWhitespaceStart () throws Exception {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
Back to top