Name

SocketAddress

Synopsis

Instances of this abstract class are opaque representations of network socket addresses. The only concrete subclass in the core Java platform is InetSocketAddress which represents an internet address and port number. See InetSocketAddress.

java.net.SocketAddress

Figure 12-18. java.net.SocketAddress

public abstract class SocketAddress implements Serializable {
// Public Constructors
     public SocketAddress( );  
}

Subclasses

InetSocketAddress

Passed To

Too many methods to list.

Returned By

DatagramPacket.getSocketAddress( ), DatagramSocket.{getLocalSocketAddress( ), getRemoteSocketAddress( )}, java.net.Proxy.address( ), ServerSocket.getLocalSocketAddress( ), Socket.{getLocalSocketAddress( ), getRemoteSocketAddress( )}, java.nio.channels.DatagramChannel.receive( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.