Package | Description |
---|---|
java.lang | |
java.net |
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkMulticast(InetAddress addr)
Checks whether the caller has permission to use IP Multicast.
|
void |
SecurityManager.checkMulticast(InetAddress addr,
byte ttl)
Checks whether the caller has permission to use IP Multicast.
|
Modifier and Type | Class and Description |
---|---|
class |
Inet4Address |
class |
Inet6Address |
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
SocketImpl.address |
Modifier and Type | Method and Description |
---|---|
InetAddress |
DatagramPacket.getAddress()
returns the address from the remote host
|
InetAddress |
InetSocketAddress.getAddress() |
static InetAddress[] |
InetAddress.getAllByName(String host)
Determines all the hosts IP addresses, given the hostname;
|
static InetAddress |
InetAddress.getByAddress(byte[] ipAddress)
Equivalent to
getByAddress(null, ipAddress) . |
static InetAddress |
InetAddress.getByAddress(String hostName,
byte[] ipAddress)
Returns an
InetAddress corresponding to the given network-order
bytes ipAddress and scopeId . |
static InetAddress |
InetAddress.getByName(String host)
Determine the IP address, given the hostname
|
protected InetAddress |
URLStreamHandler.getHostAddress(URL url)
Returns the host address of the given URL.
|
InetAddress |
DatagramSocket.getInetAddress()
The address to which this socket is connected or null if not connected.
|
InetAddress |
ServerSocket.getInetAddress() |
InetAddress |
Socket.getInetAddress() |
protected InetAddress |
SocketImpl.getInetAddress() |
InetAddress |
MulticastSocket.getInterface() |
InetAddress |
DatagramSocket.getLocalAddress()
* gets the local address to which the socket is bound.
|
InetAddress |
Socket.getLocalAddress() |
static InetAddress |
InetAddress.getLocalHost()
Returns the localhost
|
protected InetAddress |
Authenticator.getRequestingSite() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
SocketImpl.bind(InetAddress host,
int port) |
protected abstract void |
DatagramSocketImpl.bind(int lport,
InetAddress laddr)
Binds a datagram socket to a local port and address.
|
void |
DatagramSocket.connect(InetAddress address,
int port)
* Connects the datagramsocket to a remote address.
|
protected abstract void |
SocketImpl.connect(InetAddress address,
int port) |
static NetworkInterface |
NetworkInterface.getByInetAddress(InetAddress addr) |
protected abstract void |
DatagramSocketImpl.join(InetAddress inetaddr)
Join the multicast group.
|
void |
MulticastSocket.joinGroup(InetAddress groupAddr) |
protected abstract void |
DatagramSocketImpl.joinGroup(InetAddress inetaddr,
NetworkInterface nw)
Join the multicast group.
|
protected abstract void |
DatagramSocketImpl.leave(InetAddress inetaddr)
Leave the multicast group.
|
void |
MulticastSocket.leaveGroup(InetAddress groupAddr) |
protected abstract int |
DatagramSocketImpl.peek(InetAddress i)
Peek at the packet to see who it is from.
|
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress addr,
int port,
String protocol,
String prompt,
String scheme) |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String host,
InetAddress addr,
int port,
String protocol,
String prompt,
String scheme) |
void |
DatagramPacket.setAddress(InetAddress iaddr)
setAddress(InetAddress iaddr) sets the remote address of this packet.
|
void |
MulticastSocket.setInterface(InetAddress addr) |
Constructor and Description |
---|
DatagramPacket(byte[] buf,
int length,
InetAddress address,
int port)
Constructs a DatagramPacket to send datagrams ...
|
DatagramPacket(byte[] buf,
int offset,
int length,
InetAddress address,
int port)
Constructs a DatagramPacket to send datagrams ...
|
DatagramSocket(int port,
InetAddress laddr) |
InetSocketAddress(InetAddress address,
int port) |
ServerSocket(int port,
int backlog,
InetAddress local) |
Socket(InetAddress address,
int port) |
Socket(InetAddress host,
int port,
boolean stream)
will always create a Stream Socket ...
|
Socket(InetAddress address,
int port,
InetAddress localAddr,
int localPort) |
Socket(String host,
int port,
InetAddress localAddr,
int localPort) |