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.

  • 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)

    Sets performance preferences for this socket.

    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.

  • 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