Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 110 for InetAddress (0.09 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

          val localPort = socket.localPort
          val hostAndPort =
            headers[":authority"]
              ?: headers["Host"]
              ?: when (val inetAddress = socket.localAddress) {
                is Inet6Address -> "[${inetAddress.hostAddress}]:$localPort"
                else -> "${inetAddress.hostAddress}:$localPort"
              }
    
          // Allow null in failure case to allow for testing bad requests
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) = start(InetSocketAddress(inetAddress, port))
    
      /**
       * Starts the server and binds to the given socket address.
       *
       * @param inetSocketAddress the socket address to bind the server on
       */
      @Synchronized
      @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          val orderedAddresses =
            when {
              fastFallback -> reorderForHappyEyeballs(addresses)
              else -> addresses
            }
    
          for (inetAddress in orderedAddresses) {
            mutableInetSocketAddresses += InetSocketAddress(inetAddress, socketPort)
          }
        }
      }
    
      /** A set of selected Routes. */
      class Selection(val routes: List<Route>) {
        private var nextRouteIndex = 0
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.Proxy
    import java.net.Socket
    import okhttp3.Connection
    import okhttp3.Handshake
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Route
    
    /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt

    class SpecificHostSocketFactory(
      val defaultAddress: InetSocketAddress?,
    ) : DelegatingSocketFactory(getDefault()) {
      private val hostMapping = mutableMapOf<InetAddress, InetSocketAddress>()
    
      /** Sets the [real] address for [requested].  */
      operator fun set(
        requested: InetAddress,
        real: InetSocketAddress,
      ) {
        hostMapping[requested] = real
      }
    
      override fun createSocket(): Socket {
        return object : Socket() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/PoolConnectionUser.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.Proxy
    import java.net.Socket
    import okhttp3.Connection
    import okhttp3.Handshake
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Route
    
    /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/DelegatingConfiguration.java

         * @see jcifs.Configuration#getBroadcastAddress()
         */
        @Override
        public InetAddress getBroadcastAddress () {
            return this.delegate.getBroadcastAddress();
        }
    
    
        /**
         * {@inheritDoc}
         * 
         * @see jcifs.Configuration#getWinsServers()
         */
        @Override
        public InetAddress[] getWinsServers () {
            return this.delegate.getWinsServers();
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 17.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NbtSocket.java

        }
        public NbtSocket( NbtAddress address, int port,
                                    InetAddress localAddr, int localPort ) throws IOException {
            this( address, null, port, localAddr, localPort );
        }
        public NbtSocket( NbtAddress address, String calledName, int port,
                                    InetAddress localAddr, int localPort ) throws IOException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  9. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

            network,
            hostname,
            dnsClass.type,
            DnsResolver.FLAG_EMPTY,
            executor,
            null,
            object : DnsResolver.Callback<List<InetAddress>> {
              override fun onAnswer(
                addresses: List<InetAddress>,
                rCode: Int,
              ) {
                callback.onResponse(hostname, addresses)
              }
    
              override fun onError(e: DnsResolver.DnsException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      @JvmOverloads
      fun start(port: Int = 0) {
        started = true
        delegate.start(port)
      }
    
      @Throws(IOException::class)
      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        started = true
        delegate.start(inetAddress, port)
      }
    
      @Synchronized
      @Throws(IOException::class)
      fun shutdown() {
        delegate.shutdown()
      }
    
      @Synchronized override fun after() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top