|
Final | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use InetAddress | |
|---|---|
| java.lang | |
| java.net | |
| javax.net | |
| javax.net.ssl | |
| Uses of InetAddress in java.lang |
|---|
| Methods in java.lang with parameters of type InetAddress | |
|---|---|
void |
SecurityManager.checkMulticast(InetAddress maddr)
Checks whether the running program is allowed to join, leave or send to a multicast address. |
void |
SecurityManager.checkMulticast(InetAddress maddr,
byte ttl)
Deprecated. use SecurityManager#checkMulticast(java.net.InetAddress) |
| Uses of InetAddress in java.net |
|---|
| Subclasses of InetAddress in java.net | |
|---|---|
class |
Inet4Address
This class represents an IPv4 address |
class |
Inet6Address
This class represents an IPv6 address |
| Fields in java.net declared as InetAddress | |
|---|---|
protected InetAddress |
SocketImpl.address
|
| Methods in java.net that return InetAddress | |
|---|---|
InetAddress |
InetSocketAddress.getAddress()
Returns the InetAddress |
InetAddress |
DatagramPacket.getAddress()
Answer the IP address of the machine that is the target or sender of this datagram. |
static InetAddress[] |
InetAddress.getAllByName(String host)
Answer the IP addresses of a named host. |
static InetAddress |
InetAddress.getByAddress(byte[] ipAddress)
Answers the InetAddress corresponding to the array of bytes. |
static InetAddress |
InetAddress.getByAddress(String hostName,
byte[] ipAddress)
Answers the InetAddress corresponding to the array of bytes, and the given hostname. |
static InetAddress |
InetAddress.getByName(String host)
Answers the address of a host, given a host string name. |
protected InetAddress |
URLStreamHandler.getHostAddress(URL url)
Return the InetAddress for the host of the URL, or null. |
InetAddress |
Socket.getInetAddress()
Answer the remote address to which the socket is connected. |
protected InetAddress |
SocketImpl.getInetAddress()
Answer the socket's address. |
InetAddress |
ServerSocket.getInetAddress()
Answer the local IP address for this server socket. |
InetAddress |
DatagramSocket.getInetAddress()
Answer the remote address to which the socket is connected. |
InetAddress |
MulticastSocket.getInterface()
Answer the network address used by the socket. |
InetAddress |
WrapperDatagramSocketImpl.getLocalAddress()
Answer the local address to which the socket is bound. |
InetAddress |
Socket.getLocalAddress()
Answer the local address to which the socket is bound. |
InetAddress |
DatagramSocket.getLocalAddress()
Answer the local address to which the socket is bound. |
static InetAddress |
InetAddress.getLocalHost()
Answer the local host, if allowed by the security policy. |
protected InetAddress |
Authenticator.getRequestingSite()
Answers the address of the connection that requests authorization or null if unknown. |
| Methods in java.net with parameters of type InetAddress | |
|---|---|
protected abstract void |
SocketImpl.bind(InetAddress address,
int port)
Binds this socket to the specified local host/port. |
protected abstract void |
DatagramSocketImpl.bind(int port,
InetAddress addr)
Bind the datagram socket to the nominated localhost/port. |
protected abstract void |
SocketImpl.connect(InetAddress address,
int port)
Connects this socket to the specified remote host address/port. |
void |
DatagramSocket.connect(InetAddress anAddress,
int aPort)
Connect the datagram socket to a remote host and port. |
protected void |
DatagramSocketImpl.connect(InetAddress inetAddr,
int port)
Connect the socket to the specified remote address and port. |
static NetworkInterface |
NetworkInterface.getByInetAddress(InetAddress address)
Answers the network interface which has the specified inet address bound to it, if one exists. |
protected abstract void |
DatagramSocketImpl.join(InetAddress addr)
Add this socket to the multicast group. |
void |
MulticastSocket.joinGroup(InetAddress groupAddr)
Add this socket to the multicast group. |
protected abstract void |
DatagramSocketImpl.leave(InetAddress addr)
Remove the socket from the multicast group. |
void |
MulticastSocket.leaveGroup(InetAddress groupAddr)
Remove the socket from the multicast group. |
protected abstract int |
DatagramSocketImpl.peek(InetAddress sender)
Peek at the incoming packet to this socket and answer the sender's address into sender. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress rAddr,
int rPort,
String rProtocol,
String rPrompt,
String rScheme)
If the permission check of the security manager does not result in a security exception, this method invokes the methods of the registered authenticator to get the authentication info. |
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String rHost,
InetAddress rAddr,
int rPort,
String rProtocol,
String rPrompt,
String rScheme)
If the permission check of the security manager does not result in a security exception, this method invokes the methods of the registered authenticator to get the authentication info. |
void |
DatagramPacket.setAddress(InetAddress addr)
Set the IP address of the machine that is the target of this datagram. |
void |
MulticastSocket.setInterface(InetAddress addr)
Set the network address used by the socket. |
| Constructors in java.net with parameters of type InetAddress | |
|---|---|
DatagramPacket(byte[] data,
int length,
InetAddress host,
int port)
Constructs a new DatagramPacket suitable for sending
packets to the nominated host/port. |
|
DatagramPacket(byte[] data,
int offset,
int length,
InetAddress host,
int aPort)
Constructs a new DatagramPacket suitable for sending
packets to the nominated host/port. |
|
DatagramSocket(int aPort,
InetAddress addr)
Constructs a datagram socket, bound to the nominated localhost/port. |
|
InetSocketAddress(InetAddress address,
int port)
Creates a socket address from IP address and port number |
|
ServerSocket(int aport,
int backlog,
InetAddress localAddr)
Construct a ServerSocket, bound to the nominated local host/port. |
|
Socket(InetAddress dstAddress,
int dstPort)
Construct a stream socket connected to the nominated destination host address/port. |
|
Socket(InetAddress addr,
int port,
boolean streaming)
Deprecated. As of JDK 1.1, replaced by Socket |
|
Socket(InetAddress dstAddress,
int dstPort,
InetAddress localAddress,
int localPort)
Construct a stream socket connected to the nominated destination host address/port. |
|
Socket(String dstName,
int dstPort,
InetAddress localAddress,
int localPort)
Construct a stream socket connected to the nominated destination host/port. |
|
| Uses of InetAddress in javax.net |
|---|
| Methods in javax.net with parameters of type InetAddress | |
|---|---|
abstract ServerSocket |
ServerSocketFactory.createServerSocket(int localPort,
int connectionBackLog,
InetAddress localAddress)
|
abstract Socket |
SocketFactory.createSocket(InetAddress hostAddress,
int hostPort)
|
abstract Socket |
SocketFactory.createSocket(InetAddress hostAddress,
int hostPort,
InetAddress localAddress,
int localPort)
|
abstract Socket |
SocketFactory.createSocket(String hostName,
int hostPort,
InetAddress localAddress,
int localPort)
|
| Uses of InetAddress in javax.net.ssl |
|---|
| Constructors in javax.net.ssl with parameters of type InetAddress | |
|---|---|
SSLServerSocket(int port,
int maxBacklog,
InetAddress localInetAddress)
|
|
SSLSocket(InetAddress hostAddress,
int hostPort)
For use by subclass only |
|
SSLSocket(InetAddress hostAddress,
int hostPort,
InetAddress clientAddress,
int clientPort)
For use by subclass only |
|
SSLSocket(String hostName,
int hostPort,
InetAddress clientAddress,
int clientPort)
For use by subclass only |
|
|
Final | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||