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