- getActions() - Method in class java.net.SocketPermission
-
Returns the canonical string representation of the actions.
- getAddress() - Method in class java.net.DatagramPacket
-
Returns the IP address of the machine to which this datagram is being
sent or from which the datagram was received.
- getAddress() - Method in class java.net.Inet4Address
-
Returns the raw IP address of this InetAddress
object.
- getAddress() - Method in class java.net.Inet6Address
-
Returns the raw IP address of this InetAddress
object.
- getAddress() - Method in class java.net.InetAddress
-
Returns the raw IP address of this InetAddress
object.
- getAddress() - Method in class java.net.InetSocketAddress
-
Gets the InetAddress
.
- getAllByName(String) - Static method in class java.net.InetAddress
-
Given the name of a host, returns an array of its IP addresses,
based on the configured name service on the system.
- getBroadcast() - Method in class java.net.DatagramSocket
-
Tests if SO_BROADCAST is enabled.
- getByAddress(String, byte[], NetworkInterface) - Static method in class java.net.Inet6Address
-
Create an Inet6Address in the exact manner of
InetAddress.getByAddress(String,byte[])
except that the IPv6 scope_id is
set to the value corresponding to the given interface for the address
type specified in
addr
.
- getByAddress(String, byte[], int) - Static method in class java.net.Inet6Address
-
- getByAddress(String, byte[]) - Static method in class java.net.InetAddress
-
Creates an InetAddress based on the provided host name and IP address.
- getByAddress(byte[]) - Static method in class java.net.InetAddress
-
Returns an InetAddress
object given the raw IP address .
- getByInetAddress(InetAddress) - Static method in class java.net.NetworkInterface
-
Convenience method to search for a network interface that
has the specified Internet Protocol (IP) address bound to
it.
- getByName(String) - Static method in class java.net.InetAddress
-
Determines the IP address of a host, given the host's name.
- getByName(String) - Static method in class java.net.NetworkInterface
-
Searches for the network interface with the specified name.
- getCanonicalHostName() - Method in class java.net.InetAddress
-
Gets the fully qualified domain name for this IP address.
- getData() - Method in class java.net.DatagramPacket
-
Returns the data buffer.
- getDisplayName() - Method in class java.net.NetworkInterface
-
Get the display name of this network interface.
- getHardwareAddress() - Method in class java.net.NetworkInterface
-
Returns the hardware address (usually MAC) of the interface if it
has one and if it can be accessed given the current privileges.
- getHostAddress() - Method in class java.net.Inet4Address
-
Returns the IP address string in textual presentation form.
- getHostAddress() - Method in class java.net.Inet6Address
-
Returns the IP address string in textual presentation.
- getHostAddress() - Method in class java.net.InetAddress
-
Returns the IP address string in textual presentation.
- getHostName() - Method in class java.net.InetAddress
-
Gets the host name for this IP address.
- getHostName() - Method in class java.net.InetSocketAddress
-
Gets the hostname
.
- getInetAddress() - Method in class java.net.DatagramSocket
-
Returns the address to which this socket is connected.
- getInetAddress() - Method in class java.net.ServerSocket
-
Returns the local address of this server socket.
- getInetAddress() - Method in class java.net.Socket
-
Returns the address to which the socket is connected.
- getInetAddresses() - Method in class java.net.NetworkInterface
-
Convenience method to return an Enumeration with all or a
subset of the InetAddresses bound to this network interface.
- getInputStream() - Method in class java.net.Socket
-
Returns an input stream for this socket.
- getInterface() - Method in class java.net.MulticastSocket
-
Retrieve the address of the network interface used for
multicast packets.
- getKeepAlive() - Method in class java.net.Socket
-
- getLength() - Method in class java.net.DatagramPacket
-
Returns the length of the data to be sent or the length of the
data received.
- getLocalAddress() - Method in class java.net.DatagramSocket
-
Gets the local address to which the socket is bound.
- getLocalAddress() - Method in class java.net.Socket
-
Gets the local address to which the socket is bound.
- getLocalHost() - Static method in class java.net.InetAddress
-
Returns the address of the local host.
- getLocalPort() - Method in class java.net.DatagramSocket
-
Returns the port number on the local host to which this socket
is bound.
- getLocalPort() - Method in class java.net.ServerSocket
-
Returns the port number on which this socket is listening.
- getLocalPort() - Method in class java.net.Socket
-
Returns the local port number to which this socket is bound.
- getLocalSocketAddress() - Method in class java.net.DatagramSocket
-
Returns the address of the endpoint this socket is bound to.
- getLocalSocketAddress() - Method in class java.net.ServerSocket
-
Returns the address of the endpoint this socket is bound to.
- getLocalSocketAddress() - Method in class java.net.Socket
-
Returns the address of the endpoint this socket is bound to.
- getLoopbackMode() - Method in class java.net.MulticastSocket
-
Get the setting for local loopback of multicast datagrams.
- getName() - Method in class java.net.NetworkInterface
-
Get the name of this network interface.
- getNetworkInterface() - Method in class java.net.MulticastSocket
-
Get the multicast network interface set.
- getNetworkInterfaces() - Static method in class java.net.NetworkInterface
-
Returns all the interfaces on this machine.
- getOption(int) - Method in interface java.net.SocketOptions
-
Fetch the value of an option.
- getOutputStream() - Method in class java.net.Socket
-
Returns an output stream for this socket.
- getPort() - Method in class java.net.DatagramPacket
-
Returns the port number on the remote host to which this datagram is
being sent or from which the datagram was received.
- getPort() - Method in class java.net.DatagramSocket
-
Returns the port number to which this socket is connected.
- getPort() - Method in class java.net.InetSocketAddress
-
Gets the port number.
- getPort() - Method in class java.net.Socket
-
Returns the remote port number to which this socket is connected.
- getReceiveBufferSize() - Method in class java.net.DatagramSocket
-
Get value of the SO_RCVBUF option for this DatagramSocket
, that is the
buffer size used by the platform for input on this DatagramSocket
.
- getReceiveBufferSize() - Method in class java.net.ServerSocket
-
Gets the value of the
SO_RCVBUF
option
for this
ServerSocket
, that is the proposed buffer size that
will be used for Sockets accepted from this
ServerSocket
.
- getReceiveBufferSize() - Method in class java.net.Socket
-
Gets the value of the
SO_RCVBUF
option
for this
Socket
, that is the buffer size used by the platform
for input on this
Socket
.
- getRemoteSocketAddress() - Method in class java.net.DatagramSocket
-
Returns the address of the endpoint this socket is connected to, or
null
if it is unconnected.
- getRemoteSocketAddress() - Method in class java.net.Socket
-
Returns the address of the endpoint this socket is connected to, or
null
if it is unconnected.
- getScopedInterface() - Method in class java.net.Inet6Address
-
Returns the scoped interface, if this instance was created with
with a scoped interface.
- getScopeId() - Method in class java.net.Inet6Address
-
Returns the numeric scopeId, if this instance is associated with
an interface.
- getSendBufferSize() - Method in class java.net.DatagramSocket
-
Get value of the SO_SNDBUF option for this DatagramSocket
, that is the
buffer size used by the platform for output on this DatagramSocket
.
- getSendBufferSize() - Method in class java.net.Socket
-
Get value of the
SO_SNDBUF
option
for this
Socket
, that is the buffer size used by the platform
for output on this
Socket
.
- getSocketAddress() - Method in class java.net.DatagramPacket
-
Gets the SocketAddress (usually IP address + port number) of the remote
host that this packet is being sent to or is coming from.
- getSoTimeout() - Method in class java.net.DatagramSocket
-
Retrieve setting for SO_TIMEOUT.
- getSoTimeout() - Method in class java.net.ServerSocket
-
- getSoTimeout() - Method in class java.net.Socket
-
- getTcpNoDelay() - Method in class java.net.Socket
-
- getTimeToLive() - Method in class java.net.MulticastSocket
-
Get the default time-to-live for multicast packets sent out on
the socket.
- getTrafficClass() - Method in class java.net.DatagramSocket
-
Gets traffic class or type-of-service in the IP datagram
header for packets sent from this DatagramSocket.
- getTrafficClass() - Method in class java.net.Socket
-
Gets traffic class or type-of-service in the IP header
for packets sent from this Socket
- getTTL() - Method in class java.net.MulticastSocket
-