All Implemented Interfaces:
SocketOptions

  • Field Summary

    Fields

    The IP address of the remote end of this socket.

    The file descriptor object for this socket.

    protected int

    The local port number to which this socket is connected.

    protected int

    The port number on the remote host to which this socket is connected.

    Fields declared in interface SocketOptions

    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_REUSEPORT, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY

    static final int

    static final int

    This option is used to both set and fetch the outgoing interface on which the multicast packets are sent.

    static final int

    static final int

    static final int

    Fetch the local address binding of a socket.

    static final int

    static final int

    static final int

    static final int

    When this option is set, any TCP urgent data received on the socket will be received through the socket input stream.

    static final int

    static final int

    static final int

    static final int

    static final int

    static final int

  • Constructor Summary

    Constructors

    Initialize a new instance of this class

  • Method Summary

    protected abstract void

    protected abstract int

    available()

    Returns the number of bytes that can be read from this socket without blocking.

    protected abstract void

    Binds this socket to the specified local IP address and port number.

    protected abstract void

    close()

    protected abstract void

    Connects this socket to the specified port on the named host.

    protected abstract void

    Connects this socket to the specified port number on the specified host.

    protected abstract void

    Connects this socket to the specified port number on the specified host.

    protected abstract void

    create(boolean stream)

    Returns the value of this socket's fd field.

    Returns the value of this socket's address field.

    Returns an input stream for this socket.

    protected int

    Returns the value of this socket's localport field.

    protected <T> T

    Called to get a socket option.

    Returns an output stream for this socket.

    protected int

    getPort()

    Returns the value of this socket's port field.

    protected abstract void

    listen(int backlog)

    Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument.

    protected abstract void

    sendUrgentData(int data)

    Send one byte of urgent data on the socket.

    protected <T> void

    Called to set a socket option.

    protected void

    setPerformancePreferences(int connectionTime, int latency, int bandwidth)

    Deprecated, for removal: This API element is subject to removal in a future version.

    protected void

    Places the input stream for this socket at "end of stream".

    protected void

    Disables the output stream for this socket.

    Returns a set of SocketOptions supported by this impl and by this impl's socket (Socket or ServerSocket)

    protected boolean

    Returns whether or not this SocketImpl supports sending urgent data.

    toString()

    Returns the address and port of this socket as a String.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Field Details

    • fd

    • address

    • port

    • localport

  • Constructor Details

    • SocketImpl

  • Method Details

    • create

    • connect

    • connect

    • connect

    • bind

    • listen

    • accept

    • getInputStream

    • getOutputStream

    • available

    • close

    • shutdownInput

    • shutdownOutput

    • getFileDescriptor

    • getInetAddress

    • getPort

    • supportsUrgentData

    • sendUrgentData

    • getLocalPort

    • toString

    • setPerformancePreferences

    • setOption

    • getOption

    • supportedOptions