- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for getInetAddress (0.07 seconds)
-
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/TunnelingUnixSocket.java
this.inetSocketAddress = (InetSocketAddress) endpoint; super.connect(new UnixSocketAddress(path), timeout); } @Override public InetAddress getInetAddress() { return inetSocketAddress.getAddress(); }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 12 16:33:52 GMT 2019 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NbtAddress.java
* @throws UnknownHostException if the address cannot be resolved */ public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByName(getHostAddress()); } @Override public InetAddress toInetAddress() throws UnknownHostException { return getInetAddress(); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
// Test getInetAddress for correct InetAddress creation mockName = new Name(mockConfig, "TESTHOST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); InetAddress expectedInetAddress = InetAddress.getByName("192.168.1.1"); assertEquals(expectedInetAddress, nbtAddress.getInetAddress()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt
private val remotePort: Int = 1234, ) : Socket() { override fun getInputStream() = Buffer().inputStream() override fun getOutputStream() = Buffer().outputStream() override fun getInetAddress() = remoteAddress override fun getLocalAddress() = localAddress override fun getLocalPort() = localPort override fun getPort() = remotePort }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Aug 02 20:36:00 GMT 2025 - 5.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt
override fun setSSLParameters(p: SSLParameters) { delegate!!.sslParameters = p } @Throws(IOException::class) override fun close() { delegate!!.close() } override fun getInetAddress(): InetAddress = delegate!!.inetAddress @Throws(IOException::class) override fun getInputStream(): InputStream = delegate!!.inputStream @Throws(SocketException::class)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.4K bytes - Click Count (0) -
src/main/java/jcifs/NetbiosAddress.java
* a member of the group(a.k.a workgroup and domain) <code>BILLING-NY</code>. To * obtain an {@link java.net.InetAddress} for a host one might do: * * <pre> * * InetAddress addr = NbtAddress.getByName("jmorris2").getInetAddress(); * </pre> * * * From a UNIX platform with Samba installed you can perform similar * diagnostics using the <code>nmblookup</code> utility. * * @author Michael B. Allen * @see java.net.InetAddress
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.1K bytes - Click Count (0) -
src/main/java/jcifs/Config.java
* @param def the default value to return if key is not found or cannot be resolved * @return the InetAddress for the property or the default value */ public static InetAddress getInetAddress(final Properties props, final String key, InetAddress def) { final String addr = props.getProperty(key); if (addr != null) { try { def = InetAddress.getByName(addr);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/Config.java
* @param def the default InetAddress to return if the property is not found or cannot be resolved * @return the property value as an InetAddress, or the default value */ public static InetAddress getInetAddress(final String key, InetAddress def) { final String addr = prp.getProperty(key); if (addr != null) { try { def = InetAddress.getByName(addr);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
* a member of the group(a.k.a workgroup and domain) <code>BILLING-NY</code>. To * obtain an {@link java.net.InetAddress} for a host one might do: * * <pre> * InetAddress addr = NbtAddress.getByName( "jmorris2" ).getInetAddress(); * </pre> * <p>From a UNIX platform with Samba installed you can perform similar * diagnostics using the <code>nmblookup</code> utility. * * @author Michael B. Allen * @see java.net.InetAddress
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.7K bytes - Click Count (0) -
src/test/java/jcifs/ConfigTest.java
InetAddress localhost = InetAddress.getByName("localhost"); InetAddress defaultAddress = InetAddress.getByName("127.0.0.1"); assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null)); assertEquals(defaultAddress, Config.getInetAddress(testProperties, "nonexistent.host", defaultAddress)); } @Test @DisplayName("Should get boolean property with default value")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.6K bytes - Click Count (0)