Uses of Class
java.net.InetAddress
| Package | Description |
|---|---|
| com.squareup.okhttp.internal | |
| java.lang | |
| java.net | |
| javax.net | |
| javax.net.ssl |
This package provides classes and interfaces needed to use the Secure
Sockets Layer (SSL) protocol and the successor Transport Layer
Security (TLS) protocol.
|
| libcore.io | |
| org.apache.http |
The core interfaces and classes of the HTTP components.
|
| org.apache.http.conn |
The client-side connection management and handling API
at the heart of what is referred to as HttpConn.
|
| org.apache.http.conn.params |
Parameters for configuring HttpConn.
|
| org.apache.http.conn.routing |
The client-side route representation and tracking API, part of HttpConn.
|
| org.apache.http.conn.scheme | |
| org.apache.http.conn.ssl |
TLS/SSL specific parts of the HttpConn API.
|
| org.apache.http.impl |
Default implementations for interfaces in
org.apache.http. |
| org.apache.http.impl.conn | |
| org.conscrypt |
-
Uses of InetAddress in com.squareup.okhttp.internal
Methods in com.squareup.okhttp.internal that return InetAddress Modifier and Type Method Description InetAddress[]Dns. getAllByName(String host) -
Uses of InetAddress in java.lang
Methods in java.lang with parameters of type InetAddress Modifier and Type Method Description voidSecurityManager. checkMulticast(InetAddress maddr)voidSecurityManager. checkMulticast(InetAddress maddr, byte ttl)Deprecated. -
Uses of InetAddress in java.net
Subclasses of InetAddress in java.net Modifier and Type Class Description classInet4AddressAn IPv4 address.classInet6AddressAn IPv6 address.classInetUnixAddressAn AF_UNIX address.Fields in java.net declared as InetAddress Modifier and Type Field Description protected InetAddressSocketImpl. addressThe remote address this socket is connected to.static InetAddressInet4Address. ALLstatic InetAddressInet4Address. ANYstatic InetAddressInet6Address. ANYstatic InetAddressInet4Address. LOOPBACKstatic InetAddressInet6Address. LOOPBACKstatic InetAddressInetAddress. UNSPECIFIEDUsed by the DatagramSocket.disconnect implementation.Methods in java.net that return InetAddress Modifier and Type Method Description InetAddressDatagramPacket. getAddress()Gets the sender or destination IP address of this datagram packet.InetAddressInetSocketAddress. getAddress()Returns this socket address' address.InetAddressInterfaceAddress. getAddress()Returns the InetAddress for this address.static InetAddress[]InetAddress. getAllByName(String host)Gets all IP addresses associated with the givenhostidentified by name or literal IP address.InetAddressInterfaceAddress. getBroadcast()Returns the subnet-directed broadcast address if this is an IPv4 interface, null otherwise.static InetAddressInetAddress. getByAddress(byte[] ipAddress)Equivalent togetByAddress(null, ipAddress).static InetAddressInetAddress. getByAddress(String hostName, byte[] ipAddress)Returns anInetAddresscorresponding to the given network-order bytesipAddressandscopeId.static InetAddressInetAddress. getByName(String host)Returns the address of a host according to the given host string namehost.protected InetAddressURLStreamHandler. getHostAddress(URL url)Returns the host address ofurl.InetAddressDatagramSocket. getInetAddress()Gets theInetAddressinstance representing the remote address to which this UDP datagram socket is connected.InetAddressServerSocket. getInetAddress()Gets the local IP address of this server socket ornullif the socket is unbound.InetAddressSocket. getInetAddress()Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected.protected InetAddressSocketImpl. getInetAddress()Gets the remote address this socket is connected to.InetAddressMulticastSocket. getInterface()Returns an address of the outgoing network interface used by this socket.InetAddressDatagramSocket. getLocalAddress()Returns the local address to which this socket is bound, ornullif this socket is closed.InetAddressSocket. getLocalAddress()Returns the local IP address this socket is bound to, orInetAddress.ANYif the socket is unbound.static InetAddressInetAddress. getLocalHost()Returns anInetAddressfor the local host if possible, or the loopback address otherwise.static InetAddressInetAddress. getLoopbackAddress()Returns the IPv6 loopback address::1or the IPv4 loopback address127.0.0.1.protected InetAddressAuthenticator. getRequestingSite()Returns the address of the connection that requests authorization ornullif unknown.static InetAddressInetAddress. parseNumericAddress(String numericAddress)Returns an InetAddress corresponding to the given numeric address (such as"192.168.0.1"or"2001:4860:800d::68").Methods in java.net that return types with arguments of type InetAddress Modifier and Type Method Description Enumeration<InetAddress>NetworkInterface. getInetAddresses()Returns an enumeration of the addresses bound to this network interface.Methods in java.net with parameters of type InetAddress Modifier and Type Method Description protected abstract voidDatagramSocketImpl. bind(int port, InetAddress addr)Binds the datagram socket to the given localhost/port.voidPlainDatagramSocketImpl. bind(int port, InetAddress address)protected voidPlainSocketImpl. bind(InetAddress address, int port)protected abstract voidSocketImpl. bind(InetAddress address, int port)Binds this socket to the specified local host address and port number.voidDatagramSocket. connect(InetAddress address, int port)Connects this datagram socket to the specificaddressandport.protected voidDatagramSocketImpl. connect(InetAddress inetAddr, int port)Connects this socket to the specified remote address and port.voidPlainDatagramSocketImpl. connect(InetAddress inetAddr, int port)protected voidPlainSocketImpl. connect(InetAddress anAddr, int aPort)protected abstract voidSocketImpl. connect(InetAddress address, int port)Connects this socket to the specified remote host address and port number.static NetworkInterfaceNetworkInterface. getByInetAddress(InetAddress address)Returns theNetworkInterfacecorresponding to the given address, or null if no interface has this address.voidPlainSocketImpl. initRemoteAddressAndPort(InetAddress remoteAddress, int remotePort)protected abstract voidDatagramSocketImpl. join(InetAddress addr)Adds this socket to the multicast groupaddr.voidPlainDatagramSocketImpl. join(InetAddress addr)voidMulticastSocket. joinGroup(InetAddress groupAddr)Adds this socket to the specified multicast group.protected abstract voidDatagramSocketImpl. leave(InetAddress addr)Removes this socket from the multicast groupaddr.voidPlainDatagramSocketImpl. leave(InetAddress addr)voidMulticastSocket. leaveGroup(InetAddress groupAddr)Removes this socket from the specified multicast group.protected abstract intDatagramSocketImpl. peek(InetAddress sender)Peeks at the incoming packet to this socket and returns the address of thesender.protected intPlainDatagramSocketImpl. peek(InetAddress sender)static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String rHost, InetAddress rAddr, int rPort, String rProtocol, String rPrompt, String rScheme)Invokes the methods of the registered authenticator to get the authentication info.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String rHost, InetAddress rAddr, int rPort, String rProtocol, String rPrompt, String rScheme, URL rURL, Authenticator.RequestorType reqType)Invokes the methods of the registered authenticator to get the authentication info.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(InetAddress rAddr, int rPort, String rProtocol, String rPrompt, String rScheme)Invokes the methods of the registered authenticator to get the authentication info.voidDatagramPacket. setAddress(InetAddress addr)Sets the IP address of the target host.voidMulticastSocket. setInterface(InetAddress address)Sets the outgoing network interface used by this socket.Constructors in java.net with parameters of type InetAddress Constructor Description DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort)Constructs a newDatagramPacketobject to send data to the portaPortof the addresshost.DatagramPacket(byte[] data, int length, InetAddress host, int port)Constructs a newDatagramPacketobject to send data to the portaPortof the addresshost.DatagramSocket(int aPort, InetAddress addr)Constructs a UDP datagram socket which is bound to the specific local addressaddron portaPort.InetSocketAddress(InetAddress address, int port)Creates a socket endpoint with the given port numberportandaddress.PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port)ServerSocket(int port, int backlog, InetAddress localAddress)Constructs a newServerSocketinstance bound to the givenlocalAddressandport.Socket(String dstName, int dstPort, InetAddress localAddress, int localPort)Creates a new streaming socket connected to the target host specified by the parametersdstNameanddstPort.Socket(InetAddress dstAddress, int dstPort)Creates a new streaming socket connected to the target host specified by the parametersdstAddressanddstPort.Socket(InetAddress addr, int port, boolean streaming)Deprecated.UseSocket(InetAddress, int)instead of this for streaming sockets or an appropriate constructor ofDatagramSocketfor UDP transport.Socket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort)Creates a new streaming socket connected to the target host specified by the parametersdstAddressanddstPort. -
Uses of InetAddress in javax.net
Methods in javax.net with parameters of type InetAddress Modifier and Type Method Description abstract ServerSocketServerSocketFactory. createServerSocket(int port, int backlog, InetAddress iAddress)Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)Creates a new socket which is connected to the remote host specified by the parametershostandport.abstract SocketSocketFactory. createSocket(InetAddress host, int port)Creates a new socket which is connected to the remote host specified by the InetAddresshost.abstract SocketSocketFactory. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Creates a new socket which is connected to the remote host specified by the InetAddressaddress. -
Uses of InetAddress in javax.net.ssl
Constructors in javax.net.ssl with parameters of type InetAddress Constructor Description SSLServerSocket(int port, int backlog, InetAddress address)Only to be used by subclasses.SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses.SSLSocket(InetAddress address, int port)Only to be used by subclasses.SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)Only to be used by subclasses. -
Uses of InetAddress in libcore.io
Fields in libcore.io declared as InetAddress Modifier and Type Field Description InetAddressStructAddrinfo. ai_addrAddress.InetAddressStructGroupReq. gr_groupMethods in libcore.io with parameters of type InetAddress Modifier and Type Method Description voidForwardingOs. bind(FileDescriptor fd, InetAddress address, int port)static voidIoBridge. bind(FileDescriptor fd, InetAddress address, int port)voidOs. bind(FileDescriptor fd, InetAddress address, int port)voidPosix. bind(FileDescriptor fd, InetAddress address, int port)voidBlockGuardOs. connect(FileDescriptor fd, InetAddress address, int port)voidForwardingOs. connect(FileDescriptor fd, InetAddress address, int port)static booleanIoBridge. connect(FileDescriptor fd, InetAddress inetAddress, int port)Connects socket 'fd' to 'inetAddress' on 'port', with no timeout.static booleanIoBridge. connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs)Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'.voidOs. connect(FileDescriptor fd, InetAddress address, int port)voidPosix. connect(FileDescriptor fd, InetAddress address, int port)StringForwardingOs. getnameinfo(InetAddress address, int flags)StringOs. getnameinfo(InetAddress address, int flags)StringPosix. getnameinfo(InetAddress address, int flags)static booleanIoBridge. isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs)intBlockGuardOs. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)intBlockGuardOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intForwardingOs. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)intForwardingOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)static intIoBridge. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)static intIoBridge. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intOs. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)intOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intPosix. sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)intPosix. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)Constructors in libcore.io with parameters of type InetAddress Constructor Description StructGroupReq(int gr_interface, InetAddress gr_group) -
Uses of InetAddress in org.apache.http
Methods in org.apache.http that return InetAddress Modifier and Type Method Description InetAddressHttpInetConnection. getLocalAddress()InetAddressHttpInetConnection. getRemoteAddress() -
Uses of InetAddress in org.apache.http.conn
Methods in org.apache.http.conn with parameters of type InetAddress Modifier and Type Method Description SocketMultihomePlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Attempts to connects the socket to any of theInetAddresses the given host name resolves to.voidClientConnectionOperator. openConnection(OperatedClientConnection conn, HttpHost target, InetAddress local, HttpContext context, HttpParams params)Opens a connection to the given target host. -
Uses of InetAddress in org.apache.http.conn.params
Methods in org.apache.http.conn.params that return InetAddress Modifier and Type Method Description static InetAddressConnRouteParams. getLocalAddress(HttpParams params)Obtains theLOCAL_ADDRESSparameter value.Methods in org.apache.http.conn.params with parameters of type InetAddress Modifier and Type Method Description voidConnRouteParamBean. setLocalAddress(InetAddress address)static voidConnRouteParams. setLocalAddress(HttpParams params, InetAddress local)Sets theLOCAL_ADDRESSparameter value. -
Uses of InetAddress in org.apache.http.conn.routing
Methods in org.apache.http.conn.routing that return InetAddress Modifier and Type Method Description InetAddressHttpRoute. getLocalAddress()InetAddressRouteInfo. getLocalAddress()Obtains the local address to connect from.InetAddressRouteTracker. getLocalAddress()Constructors in org.apache.http.conn.routing with parameters of type InetAddress Constructor Description HttpRoute(HttpHost target, InetAddress local, boolean secure)Creates a new direct route.HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, RouteInfo.TunnelType tunnelled, RouteInfo.LayerType layered)Creates a new route with all attributes specified explicitly.HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure)Creates a new route through a proxy.HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, RouteInfo.TunnelType tunnelled, RouteInfo.LayerType layered)Creates a new route with at most one proxy.RouteTracker(HttpHost target, InetAddress local)Creates a new route tracker. -
Uses of InetAddress in org.apache.http.conn.scheme
Methods in org.apache.http.conn.scheme that return InetAddress Modifier and Type Method Description InetAddressHostNameResolver. resolve(String hostname)Methods in org.apache.http.conn.scheme with parameters of type InetAddress Modifier and Type Method Description SocketPlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Connects a socket to the given host. -
Uses of InetAddress in org.apache.http.conn.ssl
Methods in org.apache.http.conn.ssl with parameters of type InetAddress Modifier and Type Method Description SocketSSLSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params) -
Uses of InetAddress in org.apache.http.impl
Methods in org.apache.http.impl that return InetAddress Modifier and Type Method Description InetAddressSocketHttpClientConnection. getLocalAddress()InetAddressSocketHttpServerConnection. getLocalAddress()InetAddressSocketHttpClientConnection. getRemoteAddress()InetAddressSocketHttpServerConnection. getRemoteAddress() -
Uses of InetAddress in org.apache.http.impl.conn
Methods in org.apache.http.impl.conn that return InetAddress Modifier and Type Method Description InetAddressAbstractClientConnAdapter. getLocalAddress()InetAddressAbstractClientConnAdapter. getRemoteAddress()Methods in org.apache.http.impl.conn with parameters of type InetAddress Modifier and Type Method Description voidDefaultClientConnectionOperator. openConnection(OperatedClientConnection conn, HttpHost target, InetAddress local, HttpContext context, HttpParams params) -
Uses of InetAddress in org.conscrypt
Methods in org.conscrypt that return InetAddress Modifier and Type Method Description InetAddressOpenSSLSocketImplWrapper. getInetAddress()InetAddressSSLSocketWrapper. getInetAddress()InetAddressOpenSSLSocketImplWrapper. getLocalAddress()InetAddressSSLSocketWrapper. getLocalAddress()Methods in org.conscrypt with parameters of type InetAddress Modifier and Type Method Description ServerSocketOpenSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog, InetAddress iAddress)ServerSocketSSLServerSocketFactoryImpl. createServerSocket(int port, int backlog, InetAddress iAddress)SocketOpenSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Constructors in org.conscrypt with parameters of type InetAddress Constructor Description OpenSSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters)OpenSSLSocketImpl(String host, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)OpenSSLSocketImpl(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters)OpenSSLSocketImpl(InetAddress address, int port, SSLParametersImpl sslParameters)SSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters)CtorSSLSocketImpl(String host, int port, InetAddress localHost, int localPort, SSLParametersImpl sslParameters)ConstructorSSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParametersImpl sslParameters)ConstructorSSLSocketImpl(InetAddress host, int port, SSLParametersImpl sslParameters)Constructor
SecurityManager.checkMulticast(java.net.InetAddress)instead.