Method Summary |
|
abstract protected void | accept(SocketImpl newSocket) Accepts a connection on the provided socket. |
abstract protected int | available() Answer the number of bytes that may be read from this socket without
blocking. |
abstract protected void | bind(InetAddress address, int port) Binds this socket to the specified local host/port. |
abstract protected void | close() Close the socket. |
abstract protected void | connect(String host, int port) Connects this socket to the specified remote host/port. |
abstract protected void | connect(InetAddress address, int port) Connects this socket to the specified remote host address/port. |
abstract protected void | connect(SocketAddress remoteAddr, int timeout) Connect the socket to the host/port specified by the SocketAddress with a
specified timeout. |
abstract protected void | create(boolean isStreaming) Creates a new unconnected socket. |
protected FileDescriptor | getFileDescriptor() Answer the socket's file descriptor. |
protected InetAddress | getInetAddress() Answer the socket's address. |
abstract protected InputStream | getInputStream() Answer the socket input stream. |
protected int | getLocalPort() Answer the socket's localport. |
abstract public Object | getOption(int optID) Answer the nominated socket option. |
abstract protected OutputStream | getOutputStream() Answer the socket output stream. |
protected int | getPort() Answer the socket's remote port. |
abstract protected void | listen(int backlog) Listen for connection requests on this stream socket. |
abstract protected void | sendUrgentData(int value) Send the single byte of urgent data on the socket. |
abstract public void | setOption(int optID, Object val) Set the nominated socket option. |
protected void | setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets performance preference for connectionTime, latency and bandwidth. |
protected void | shutdownInput() Shutdown the input portion of the socket.
The default implementation always throws an
IOException to
indicate that the subclass should have overridden this method.
throws: IOException - Always. |
protected void | shutdownOutput() Shutdown the output portion of the socket.
The default implementation always throws an
IOException to
indicate that the subclass should have overridden this method.
throws: IOException - Always. |
protected boolean | supportsUrgentData() Answer if the socket supports urgent data. |
public String | toString() Answers a string containing a concise, human-readable description of the
socket. |
int | write(byte[] buffer, int offset, int count) In the IP stack, write at most count bytes on the socket
from the buffer , from the offset . |