Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.net |
Provides the classes for implementing networking applications.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
|
javax.net |
Provides classes for networking applications.
|
javax.net.ssl |
Provides classes for the secure socket package.
|
javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network
authentication protocol.
|
org.ietf.jgss |
This package presents a framework that allows application developers to
make use of security services like authentication, data integrity and
data confidentiality from a variety of underlying security mechanisms
like Kerberos, using a unified API.
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkMulticast(InetAddress maddr)
Throws a
SecurityException if the
calling thread is not allowed to use
(join/leave/send/receive) IP multicast. |
void |
SecurityManager.checkMulticast(InetAddress maddr,
byte ttl)
Deprecated.
Use #checkPermission(java.security.Permission) instead
|
Modifier and Type | Class and Description |
---|---|
class |
Inet4Address
This class represents an Internet Protocol version 4 (IPv4) address.
|
class |
Inet6Address
This class represents an Internet Protocol version 6 (IPv6) address.
|
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
SocketImpl.address
The IP address of the remote end of this socket.
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
InterfaceAddress.getAddress()
Returns an
InetAddress for this address. |
InetAddress |
InetSocketAddress.getAddress()
Gets the
InetAddress . |
InetAddress |
DatagramPacket.getAddress()
Returns the IP address of the machine to which this datagram is being
sent or from which the datagram was received.
|
static InetAddress[] |
InetAddress.getAllByName(String host)
Given the name of a host, returns an array of its IP addresses,
based on the configured name service on the system.
|
InetAddress |
InterfaceAddress.getBroadcast()
Returns an
InetAddress for the brodcast address
for this InterfaceAddress. |
static InetAddress |
InetAddress.getByAddress(byte[] addr)
Returns an
InetAddress object given the raw IP address . |
static InetAddress |
InetAddress.getByAddress(String host,
byte[] addr)
Creates an InetAddress based on the provided host name and IP address.
|
static InetAddress |
InetAddress.getByName(String host)
Determines the IP address of a host, given the host's name.
|
protected InetAddress |
URLStreamHandler.getHostAddress(URL u)
Get the IP address of our host.
|
InetAddress |
ServerSocket.getInetAddress()
Returns the local address of this server socket.
|
InetAddress |
DatagramSocket.getInetAddress()
Returns the address to which this socket is connected.
|
protected InetAddress |
SocketImpl.getInetAddress()
Returns the value of this socket's
address field. |
InetAddress |
Socket.getInetAddress()
Returns the address to which the socket is connected.
|
InetAddress |
MulticastSocket.getInterface()
Retrieve the address of the network interface used for
multicast packets.
|
InetAddress |
DatagramSocket.getLocalAddress()
Gets the local address to which the socket is bound.
|
InetAddress |
Socket.
|