java.lang.Objectjava.net.SocketImpl
All Implemented Interfaces:
SocketOptions
Direct Known Subclasses:
PlainSocketImpl, AbstractPlainSocketImpl, TwoStacksPlainSocketImpl, ZSocketImpl, SocksSocketImpl, DualStackPlainSocketImpl
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.
unascribed - JDK1.0 - | Field Summary | ||
|---|---|---|
| Socket | socket | The actual Socket object. |
| ServerSocket | serverSocket | |
| protected FileDescriptor | fd | The file descriptor object for this socket. |
| protected InetAddress | address | The IP address of the remote end of this socket. |
| protected int | port | The port number on the remote host to which this socket is connected. |
| protected int | localport | The local port number to which this socket is connected. |
| Method from java.net.SocketImpl Summary: |
|---|
| accept, available, bind, close, connect, connect, connect, create, getFileDescriptor, getInetAddress, getInputStream, getLocalPort, getOutputStream, getPort, getServerSocket, getSocket, listen, reset, sendUrgentData, setPerformancePreferences, setServerSocket, setSocket, shutdownInput, shutdownOutput, supportsUrgentData, toString |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.net.SocketImpl Detail: |
|---|
|
|
|
|
|
|
|
|
fd field. |
address field. |
|
localport field. |
|
port field. |
|
|
count argument. If a
connection indication arrives when the queue is full, the
connection is refused. |
|
|
Sockets use the TCP/IP protocol by default. Some implementations may offer alternative protocols which have different performance characteristics than TCP/IP. This method allows the application to express its own preferences as to how these tradeoffs should be made when the implementation chooses from the available protocols. Performance preferences are described by three integers whose values indicate the relative importance of short connection time, low latency, and high bandwidth. The absolute values of the integers are irrelevant; in order to choose a protocol the values are simply compared, with larger values indicating stronger preferences. Negative values represent a lower priority than positive values. If the application prefers short connection time over both low latency and high bandwidth, for example, then it could invoke this method with the values (1, 0, 0). If the application prefers high bandwidth above low latency, and low latency above short connection time, then it could invoke this method with the values (0, 1, 2). By default, this method does nothing, unless it is overridden in a a sub-class. |
|
|
|
|
|
String. |