|
CDC 1.1.2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use InetAddress | |
java.lang | Provides classes that are fundamental to the design of the Java programming language. |
java.net | Provides the classes for implementing networking applications. |
Uses of InetAddress in java.lang |
Methods in java.lang with parameters of type InetAddress | |
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 |
Uses of InetAddress in java.net |
Subclasses of InetAddress in java.net | |
class |
Inet4Address
This class represents an Internet Protocol version 4 (IPv4) address. |
class |
Inet6Address
This class represents an Internet Protocol version 6 (IPv6) address. |
Methods in java.net that return InetAddress | |
protected InetAddress |
URLStreamHandler.getHostAddress(URL u)
Get the IP address of our host. |
InetAddress |
InetSocketAddress.getAddress()
Gets the InetAddress . |
static InetAddress |
InetAddress.getByAddress(String host,
byte[] addr)
Create an InetAddress based on the provided host name and IP address No name service is checked for the validity of the address. |
static InetAddress |
InetAddress.getByName(String host)
Determines the IP address of a host, given the host's name. |
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. |
static InetAddress |
InetAddress.getByAddress(byte[] addr)
Returns an InetAddress object given the raw IP address . |
static InetAddress |
InetAddress.getLocalHost()
Returns the local host. |
InetAddress |
DatagramSocket.getInetAddress()
Returns the address to which this socket is connected. |
InetAddress |
DatagramSocket.getLocalAddress()
Gets the local address to which the socket is bound. |
InetAddress |
DatagramPacket.getAddress()
Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received. |
Methods in java.net with parameters of type InetAddress | |
static NetworkInterface |
NetworkInterface.getByInetAddress(InetAddress addr)
Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it. |
protected abstract void |
DatagramSocketImpl.bind(int lport,
InetAddress laddr)
Binds a datagram socket to a local port and address. |
protected void |
DatagramSocketImpl.connect(InetAddress address,
int port)
Connects a datagram socket to a remote destination. |
protected abstract int |
DatagramSocketImpl.peek(InetAddress i)
Peek at the packet to see who it is from. |
protected abstract void |
DatagramSocketImpl.join(InetAddress inetaddr)
Join the multicast group. |
protected abstract void |
DatagramSocketImpl.leave(InetAddress inetaddr)
Leave the multicast group. |
void |
DatagramSocket.connect(InetAddress address,
int port)
Connects the socket to a remote address for this socket. |
void |
DatagramPacket.setAddress(InetAddress iaddr)
Sets the IP address of the machine to which this datagram is being sent. |
Constructors in java.net with parameters of type InetAddress | |
InetSocketAddress(InetAddress addr,
int port)
Creates a socket address from an IP address and a port number. |
|
DatagramSocket(int port,
InetAddress laddr)
Creates a datagram socket, bound to the specified local address. |
|
DatagramPacket(byte[] buf,
int offset,
int length,
InetAddress address,
int port)
Constructs a datagram packet for sending packets of length length with offset ioffset to the
specified port number on the specified host. |
|
DatagramPacket(byte[] buf,
int length,
InetAddress address,
int port)
Constructs a datagram packet for sending packets of length length to the specified port number on the specified
host. |
|
CDC 1.1.2 | ||||||||||
PREV NEXT | FRAMES NO FRAMES |