- 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
.
- getAddress() - Method in class java.net.InterfaceAddress
-
Returns an InetAddress
for this address.
- 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.
- getBroadcast() - Method in class java.net.InterfaceAddress
-
Returns an InetAddress
for the broadcast address for this InterfaceAddress.
- 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 .
- getByIndex(int) - Static method in class java.net.NetworkInterface
-
Get a network interface given its index.
- 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.
- getDefault() - Static method in class javax.net.ServerSocketFactory
-
Returns a copy of the environment's default socket factory.
- getDefault() - Static method in class javax.net.SocketFactory
-
Returns a copy of the environment's default socket factory.
- 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
.
- getHostString() - Method in class java.net.InetSocketAddress
-
Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a
literal).
- getIndex() - Method in class java.net.NetworkInterface
-
Returns the index of this network interface.
- 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.
- getInterfaceAddresses() - Method in class java.net.NetworkInterface
-
Get a List of all or a subset of the InterfaceAddresses
of this network interface.
- 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.
- getLoopbackAddress() - Static method in class java.net.InetAddress
-
Returns the loopback address.
- getLoopbackMode() - Method in class java.net.MulticastSocket
-
Get the setting for local loopback of multicast datagrams.
- getMTU() - Method in class java.net.NetworkInterface
-
Returns the Maximum Transmission Unit (MTU) of this interface.
- 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.
- getNetworkPrefixLength() - Method in class java.net.InterfaceAddress
-
Returns the network prefix length for this address.
- getOffset() - Method in class java.net.DatagramPacket
-
Returns the offset of the data to be sent or the offset of the data received.
- getOOBInline() - Method in class java.net.Socket
-
- 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.
- getReuseAddress() - Method in class java.net.DatagramSocket
-
Tests if SO_REUSEADDR is enabled.
- getReuseAddress() - Method in class java.net.ServerSocket
-
- getReuseAddress() - Method in class java.net.Socket
-
- 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.
- getSoLinger() - Method in class java.net.Socket
-
- 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