GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.channel.socket
  • SocketChannel

This view

  • Original page
  • New address

GeezerVison is showing netty.io — SocketChannel (Netty API Reference (4.1.141.Final))

Interface SocketChannel

All Superinterfaces:
AttributeMap, Channel, ChannelOutboundInvoker, Comparable<Channel>, DuplexChannel
All Known Implementing Classes:
EpollSocketChannel, KQueueSocketChannel, NioSocketChannel, OioSocketChannel

public interface SocketChannel extends DuplexChannel
A TCP/IP socket Channel.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Channel

    Channel.Unsafe
    Modifier and Type
    Interface
    Description
    static interface 
    Channel.Unsafe
    Unsafe operations that should never be called from user-code.
  • Method Summary

    Modifier and Type
    Method
    Description
    SocketChannelConfig
    config()
    Returns the configuration of this channel.
    InetSocketAddress
    localAddress()
    Returns the local address where this channel is bound to.
    ServerSocketChannel
    parent()
    Returns the parent of this channel.
    InetSocketAddress
    remoteAddress()
    Returns the remote address where this channel is connected to.

    Methods inherited from interface AttributeMap

    attr, hasAttr
    Modifier and Type
    Method
    Description
    <T> Attribute<T>
    attr(AttributeKey<T> key)
    Get the Attribute for the given AttributeKey.
    <T> boolean
    hasAttr(AttributeKey<T> key)
    Returns true if and only if the given Attribute exists in this AttributeMap.

    Methods inherited from interface Channel

    alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, pipeline, read, unsafe
    Modifier and Type
    Method
    Description
    ByteBufAllocator
    alloc()
    Return the assigned ByteBufAllocator which will be used to allocate ByteBufs.
    long
    bytesBeforeUnwritable()
    Get how many bytes can be written until Channel.isWritable() returns false.
    long
    bytesBeforeWritable()
    Get how many bytes must be drained from underlying buffers until Channel.isWritable() returns true.
    ChannelFuture
    closeFuture()
    Returns the ChannelFuture which will be notified when this channel is closed.
    EventLoop
    eventLoop()
    Return the EventLoop this Channel was registered to.
    Channel
    flush()
    Request to flush all pending messages via this ChannelOutboundInvoker.
    ChannelId
    id()
    Returns the globally unique identifier of this Channel.
    boolean
    isActive()
    Return true if the Channel is active and so connected.
    boolean
    isOpen()
    Returns true if the Channel is open and may get active later
    boolean
    isRegistered()
    Returns true if the Channel is registered with an EventLoop.
    boolean
    isWritable()
    Returns true if and only if the I/O thread will perform the requested write operation immediately.
    ChannelMetadata
    metadata()
    Return the ChannelMetadata of the Channel which describe the nature of the Channel.
    ChannelPipeline
    pipeline()
    Return the assigned ChannelPipeline.
    Channel
    read()
    Request to Read data from the Channel into the first inbound buffer, triggers an ChannelInboundHandler.channelRead(ChannelHandlerContext, Object) event if data was read, and triggers a channelReadComplete event so the handler can decide to continue reading.
    Channel.Unsafe
    unsafe()
    Returns an internal-use-only object that provides unsafe operations.

    Methods inherited from interface ChannelOutboundInvoker

    bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
    Modifier and Type
    Method
    Description
    ChannelFuture
    bind(SocketAddress localAddress)
    Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    bind(SocketAddress localAddress, ChannelPromise promise)
    Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    close()
    Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    close(ChannelPromise promise)
    Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    connect(SocketAddress remoteAddress)
    Request to connect to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    connect(SocketAddress remoteAddress, ChannelPromise promise)
    Request to connect to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    connect(SocketAddress remoteAddress, SocketAddress localAddress)
    Request to connect to the given SocketAddress while bind to the localAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
    Request to connect to the given SocketAddress while bind to the localAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    deregister()
    Request to deregister from the previous assigned EventExecutor and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    deregister(ChannelPromise promise)
    Request to deregister from the previous assigned EventExecutor and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    disconnect()
    Request to disconnect from the remote peer and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    disconnect(ChannelPromise promise)
    Request to disconnect from the remote peer and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
    ChannelFuture
    newFailedFuture(Throwable cause)
    Create a new ChannelFuture which is marked as failed already.
    ChannelProgressivePromise
    newProgressivePromise()
    Return an new ChannelProgressivePromise
    ChannelPromise
    newPromise()
    Return a new ChannelPromise.
    ChannelFuture
    newSucceededFuture()
    Create a new ChannelFuture which is marked as succeeded already.
    ChannelPromise
    voidPromise()
    Return a special ChannelPromise which can be reused for different operations.
    ChannelFuture
    write(Object msg)
    Request to write a message via this ChannelHandlerContext through the ChannelPipeline.
    ChannelFuture
    write(Object msg, ChannelPromise promise)
    Request to write a message via this ChannelHandlerContext through the ChannelPipeline.
    ChannelFuture
    writeAndFlush(Object msg)
    Shortcut for call ChannelOutboundInvoker.write(Object) and ChannelOutboundInvoker.flush().
    ChannelFuture
    writeAndFlush(Object msg, ChannelPromise promise)
    Shortcut for call ChannelOutboundInvoker.write(Object, ChannelPromise) and ChannelOutboundInvoker.flush().

    Methods inherited from interface Comparable

    compareTo

    Methods inherited from interface DuplexChannel

    isInputShutdown, isOutputShutdown, isShutdown, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutput
    Modifier and Type
    Method
    Description
    boolean
    isInputShutdown()
    Returns true if and only if the remote peer shut down its output so that no more data is received from this channel.
    boolean
    isOutputShutdown()
     
    boolean
    isShutdown()
    Determine if both the input and output of this channel have been shutdown.
    ChannelFuture
    shutdown()
    Will shutdown the input and output sides of this channel.
    ChannelFuture
    shutdown(ChannelPromise promise)
    Will shutdown the input and output sides of this channel.
    ChannelFuture
    shutdownInput()
     
    ChannelFuture
    shutdownInput(ChannelPromise promise)
    Will shutdown the input and notify ChannelPromise.
    ChannelFuture
    shutdownOutput()
     
    ChannelFuture
    shutdownOutput(ChannelPromise promise)
    Will shutdown the output and notify ChannelPromise.
  • Method Details

    • parent

      ServerSocketChannel parent()
      Description copied from interface: Channel
      Returns the parent of this channel.
      Specified by:
      parent in interface Channel
      Returns:
      the parent channel. null if this channel does not have a parent channel.
    • config

      SocketChannelConfig config()
      Description copied from interface: Channel
      Returns the configuration of this channel.
      Specified by:
      config in interface Channel
    • localAddress

      InetSocketAddress localAddress()
      Description copied from interface: Channel
      Returns the local address where this channel is bound to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
      Specified by:
      localAddress in interface Channel
      Returns:
      the local address of this channel. null if this channel is not bound.
    • remoteAddress

      InetSocketAddress remoteAddress()
      Description copied from interface: Channel
      Returns the remote address where this channel is connected to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
      Specified by:
      remoteAddress in interface Channel
      Returns:
      the remote address of this channel. null if this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g. DatagramChannel, use DefaultAddressedEnvelope.recipient() to determine the origination of the received message as this method will return null.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.