Method Summary |
|
abstract protected void | accept(SocketImpl s) Accepts a connection. |
abstract protected int | available() Returns the number of bytes that can be read from this socket
without blocking. |
abstract protected void | bind(InetAddress host, int port) Binds this socket to the specified port number on the specified host. |
abstract protected void | close() Closes this socket. |
abstract protected void | connect(String host, int port) Connects this socket to the specified port on the named host. |
abstract protected void | connect(InetAddress address, int port) Connects this socket to the specified port number on the specified host. |
abstract protected void | connect(SocketAddress address, int timeout) Connects this socket to the specified port number on the specified host.
A timeout of zero is interpreted as an infinite timeout. |
abstract protected void | create(boolean stream) Creates either a stream or a datagram socket. |
protected FileDescriptor | getFileDescriptor() Returns the value of this socket's fd field. |
protected InetAddress | getInetAddress() Returns the value of this socket's address field. |
abstract protected InputStream | getInputStream() Returns an input stream for this socket. |
protected int | getLocalPort() Returns the value of this socket's localport field. |
abstract protected OutputStream | getOutputStream() Returns an output stream for this socket. |
protected int | getPort() Returns the value of this socket's port field. |
ServerSocket | getServerSocket() |
Socket | getSocket() |
abstract protected void | listen(int backlog) Sets the maximum queue length for incoming connection indications
(a request to connect) to the count argument. |
void | reset() |
abstract protected void | sendUrgentData(int data) Send one byte of urgent data on the socket. |
void | setServerSocket(ServerSocket soc) |
void | setSocket(Socket soc) |
protected void | shutdownInput() Places the input stream for this socket at "end of stream". |
protected void | shutdownOutput() Disables the output stream for this socket. |
protected boolean | supportsUrgentData() Returns whether or not this SocketImpl supports sending
urgent data. |
public String | toString() Returns the address and port of this socket as a String . |