All Implemented Interfaces:
SocketOptions

  • Field Summary

    Fields

    The file descriptor object.

    protected int

    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

    Constructor for subclasses to call.

  • Method Summary

    protected abstract void

    Binds a datagram socket to a local port and address.

    protected abstract void

    close()

    protected void

    Connects a datagram socket to a remote destination.

    protected abstract void

    create()

    Creates a datagram socket.

    protected void

    Disconnects a datagram socket from its remote destination.

    Gets the datagram socket file descriptor.

    protected int

    protected <T> T

    Called to get a socket option.

    protected abstract int

    Retrieve the TTL (time-to-live) option.

    protected abstract void

    Join the multicast group.

    protected abstract void

    Join the multicast group.

    protected abstract void

    Leave the multicast group.

    protected abstract void

    Leave the multicast group.

    protected abstract int

    Peek at the packet to see who it is from.

    protected abstract int

    Peek at the packet to see who it is from.

    protected abstract void

    Receive the datagram packet.

    protected abstract void

    protected <T> void

    Called to set a socket option.

    protected abstract void

    setTimeToLive(int ttl)

    Set the TTL (time-to-live) option.

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

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.

    Returns a string representation of the object.

    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

    • localPort

    • fd

  • Constructor Details

    • DatagramSocketImpl

  • Method Details

    • create

    • bind

    • send

    • connect

    • disconnect

    • peek

    • peekData

    • receive

    • setTimeToLive

    • getTimeToLive

    • join

    • leave

    • joinGroup

    • leaveGroup

    • close

    • getLocalPort

    • getFileDescriptor

    • setOption

    • getOption

    • supportedOptions