Uses of Class java.net.SocketAddress

Uses in package java.nio.channels

Methods with parameter type java.net.SocketAddress

DatagramChannel
Connects this channel's socket.
boolean
Connects the channel's socket to the remote address.
SocketChannel
Opens a channel and connects it to a remote address.
int
Sends a datagram via this channel.

Methods with return type java.net.SocketAddress

SocketAddress
Receives a datagram via this channel.

Uses in package java.net

Classes derived from java.net.SocketAddress

class
InetSocketAddress instances represent socket addresses in the java.nio package.

Constructors with parameter type java.net.SocketAddress

DatagramPacket.DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
DatagramPacket.DatagramPacket(byte[] buf, int length, SocketAddress address)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
Initializes a new instance of DatagramSocket that binds to the specified local port and address.
Create a multicast socket bound to the specified SocketAddress.
Creates a new Proxy object.

Methods with parameter type java.net.SocketAddress

void
Binds the socket to the given socket address.
void
Binds the server socket to a specified socket address
void
Binds the socket to the given local address/port
void
ServerSocket.bind(SocketAddress endpoint, int backlog)
Binds the server socket to a specified socket address
void
Connects the datagram socket to a specified socket address.
void
Connects the socket with a remote address.
void
Socket.connect(SocketAddress endpoint, int timeout)
Connects the socket with a remote address.
void
SocketImpl.connect(SocketAddress address, int timeout)
Connects to the socket to the host specified in address.
void
Signals to the selector that a proxy was no available.
void
Causes this socket to join the specified multicast group on a specified device
void
Joins the specified mulitcast group on a specified interface.
void
Leaves a multicast group
void
Leaves the specified mulitcast group on a specified interface.
void
Sets the address of the remote host this package will be sent

Methods with return type java.net.SocketAddress

SocketAddress
Returns the socket address for this proxy object.
SocketAddress
Returns the local SocketAddress this socket is bound to.
SocketAddress
Returns the local socket address
SocketAddress
Returns local socket address.
SocketAddress
Returns the SocketAddress of the host this socket is conneted to or null if this socket is not connected.
SocketAddress
Returns the remote socket address.
SocketAddress
Gets the socket address of the host this packet will be sent to/is coming from