public abstract class SocketImpl extends Object implements SocketOptions
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
address |
protected FileDescriptor |
fd |
protected int |
localport |
protected int |
port |
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
Constructor and Description |
---|
SocketImpl() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
accept(SocketImpl s) |
protected abstract int |
available() |
protected abstract void |
bind(InetAddress host,
int port) |
protected abstract void |
close() |
protected abstract void |
connect(InetAddress address,
int port) |
protected abstract void |
connect(SocketAddress address,
int timeout) |
protected abstract void |
connect(String host,
int port) |
protected abstract void |
create(boolean stream) |
protected FileDescriptor |
getFileDescriptor() |
protected InetAddress |
getInetAddress() |
protected abstract InputStream |
getInputStream() |
protected int |
getLocalPort() |
protected abstract OutputStream |
getOutputStream() |
protected int |
getPort() |
protected abstract void |
listen(int backlog) |
protected abstract void |
sendUrgentData(int udata) |
protected void |
shutdownInput() |
protected void |
shutdownOutput() |
protected boolean |
supportsUrgentData() |
String |
toString()
Default String representation: overriden by many classes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOption, setOption
protected InetAddress address
protected FileDescriptor fd
protected int localport
protected int port
protected abstract void accept(SocketImpl s) throws IOException
IOException
protected abstract int available() throws IOException
IOException
protected abstract void bind(InetAddress host, int port) throws IOException
IOException
protected abstract void close() throws IOException
IOException
protected abstract void connect(InetAddress address, int port) throws IOException
IOException
protected abstract void connect(SocketAddress address, int timeout) throws IOException
IOException
protected abstract void connect(String host, int port) throws IOException
IOException
protected abstract void create(boolean stream) throws IOException
IOException
protected FileDescriptor getFileDescriptor()
protected InetAddress getInetAddress()
protected abstract InputStream getInputStream() throws IOException
IOException
protected abstract OutputStream getOutputStream() throws IOException
IOException
protected int getLocalPort()
protected int getPort()
protected abstract void listen(int backlog) throws IOException
IOException
protected abstract void sendUrgentData(int udata) throws IOException
IOException
protected boolean supportsUrgentData()
public String toString()
Object
protected void shutdownInput() throws IOException
IOException
protected void shutdownOutput() throws IOException
IOException