20230627 java.nio.channels.SocketChannel

介绍

  • java.nio.channels.SocketChannel
  • public abstract class SocketChannel extends AbstractSelectableChannel implements ByteChannel, ScatteringByteChannel, GatheringByteChannel, NetworkChannel

API

  • open

    • 打开一个套接字通道,并将其连接到远程地址
  • bind

  • connect

  • socket

  • close

  • isOpen

  • isBlocking

  • isConnected

  • isConnectionPending

  • read

  • write

  • register

  • isRegistered

  • validOps

  • getLocalAddress

  • provider

  • keyFor

  • blockingLock

  • configureBlocking

  • register

  • getOption, setOption

  • supportedOptions

  • shutdownInput

  • shutdownOutput

  • finishConnect

  • getRemoteAddress

posted @ 2023-08-29 17:04  流星<。)#)))≦  阅读(4)  评论(0编辑  收藏  举报