SocketImpl.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| pack-priv static class | AFSocketImpl.
When the |
| Modifier and Type | Field and Description |
|---|---|
| private final AFAddressFamily | |
| pack-priv final AncillaryDataSupport | |
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| private volatile boolean | |
| private volatile boolean | |
| private final AtomicBoolean | |
| private final AFSocketImpl. | |
| private Boolean | |
| private AFSocketImplExtensions | |
| private final AFInputStream | |
| private final AFOutputStream | |
| private boolean | |
| private static final int | |
| private int | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| protected | AFSocketImpl(AFAddressFamily<@NonNull A>
The address family. addressFamily, FileDescriptor The socket's fdObj)FileDescriptor.Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | accept(SocketImpl
the accepted connection. socket)Implements abstract java. Accepts a connection. |
| pack-priv final boolean | |
| protected final int | available()
Implements abstract java. Returns the number of bytes that can be read from this socket without blocking. |
| pack-priv final void | |
| protected final void | bind(InetAddress
an IP address that belongs to a local interface. host, int the port number. port)Implements abstract java. Binds this socket to the specified local IP address and port number. |
| private void | |
| private static boolean | |
| protected final void | |
| protected final void | connect(String
the name of the remote host. host, int the port number. port)Implements abstract java. Connects this socket to the specified port on the named host. |
| protected final void | connect(InetAddress
the IP address of the remote host. address, int the port number. port)Implements abstract java. Connects this socket to the specified port number on the specified host. |
| protected final void | connect(SocketAddress
the Socket address of the remote host. addr, int the timeout value, in milliseconds, or zero for no timeout. connectTimeout)Implements abstract java. Connects this socket to the specified port number on the specified host. |
| pack-priv final boolean | |
| protected final void | create(boolean
if stream)true, create a stream socket;
otherwise, create a datagram socket.Implements abstract java. Creates either a stream or a datagram socket. |
| pack-priv final void | |
| pack-priv final void | |
| private static int | |
| private static int | |
| pack-priv final AFAddressFamily | |
| pack-priv AncillaryDataSupport | |
| pack-priv final int | |
| pack-priv final AFSocketCore | |
| pack-priv final FileDescriptor | |
| protected final FileDescriptor | getFileDescriptor()
Overrides java. Returns the value of this socket's |
| protected final synchronized AFSocketImplExtensions | Returns: The helper instance.Returns the internal helper instance for address-specific extensions. |
| protected final InetAddress | getInetAddress()
Overrides java. Returns the value of this socket's |
| protected final AFInputStream | getInputStream()
Implements abstract java. Returns an input stream for this socket. |
| pack-priv final int | |
| pack-priv final @Nullable A | |
| public Object | getOption(int
an optID)int identifying the option to fetchImplements java. Fetch the value of an option. |
| protected <T> T | getOption(SocketOption<T>
The socket option name)Overrides java. Called to get a socket option. |
| private Object | |
| pack-priv static final Object | getOptionDefault(FileDescriptor fdesc, int optID, AtomicInteger acceptTimeout, AFAddressFamily<?> af)
|
| protected final Object | Returns: The value.The option ID. optID)Like |
| protected final AFOutputStream | getOutputStream()
Implements abstract java. Returns an output stream for this socket. |
| pack-priv final int | |
| pack-priv final @Nullable A | |
| pack-priv final boolean | |
| pack-priv boolean | |
| pack-priv final boolean | |
| protected final void | listen(int
the maximum length of the queue. backlog)Implements abstract java. Sets the maximum queue length for incoming connection indications
(a request to connect) to the |
| protected final AFInputStream | |
| protected final AFOutputStream | |
| pack-priv final int | |
| pack-priv final SocketAddress | |
| pack-priv final int | |
| protected final void | sendUrgentData(int
The byte of data to send data)Implements abstract java. Send one byte of urgent data on the socket. |
| pack-priv final void | |
| public void | setOption(int
identifies the option optID, Object the parameter of the socket option value)Implements java. Enable/disable the option specified by |
| protected <T> void | setOption(SocketOption<T>
The socket option name, T The value of the socket option. A value of value)null
may be valid for some options.Overrides java. Called to set a socket option. |
| private void | |
| pack-priv static final void | |
| protected final void | setOptionLenient(int
The option ID. optID, Object The value. value)Like |
| pack-priv final void | |
| protected final void | |
| protected final void | shutdownInput()
Overrides java. Places the input stream for this socket at "end of stream". |
| protected final void | shutdownOutput()
Overrides java. Disables the output stream for this socket. |
| protected Set | supportedOptions()
Overrides java. Returns a set of SocketOptions supported by this impl and by this impl's socket (Socket or ServerSocket) |
| protected final boolean | supportsUrgentData()
Overrides java. Returns whether or not this SocketImpl supports sending urgent data. |
| public final String | toString()
Overrides java. Returns the address and port of this socket as a |
| pack-priv final void | |
| pack-priv final int |