java.net
Class SocketImpl
java.lang.Object
java.net.SocketImpl
- All Implemented Interfaces:
- SocketOptions
public abstract class SocketImpl
- extends Object
- implements SocketOptions
The abstract class SocketImpl
is a common superclass
of all classes that actually implement sockets. It is used to
create both client and server sockets.
A "plain" socket implements these methods exactly as
described, without attempting to go through a firewall or proxy.
- Since:
- JDK1.0
- Version:
- 1.31 10/17/00
- Author:
- unascribed
Fields inherited from interface java.net.SocketOptions |
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY |
Method Summary |
String |
toString()
Returns the address and port of this socket as a String . |
SocketImpl
public SocketImpl()
toString
public String toString()
- Returns the address and port of this socket as a
String
.
- Overrides:
toString
in class Object
- Returns:
- a string representation of this socket.