| 程序包 | 说明 |
|---|---|
| net.hasor.neta.channel |
| 限定符和类型 | 字段和说明 |
|---|---|
protected net.hasor.cobble.concurrent.future.Future<NetChannel> |
NetChannel.closeFuture |
| 限定符和类型 | 方法和说明 |
|---|---|
NetChannel |
NetListen.findChannel(long channelID)
Search for NetChannel by id,
return null if NetChannel is not from this NetListen
|
| 限定符和类型 | 方法和说明 |
|---|---|
net.hasor.cobble.concurrent.future.Future<NetChannel> |
NetChannel.close() |
net.hasor.cobble.concurrent.future.Future<NetChannel> |
NetChannel.closeNow() |
net.hasor.cobble.concurrent.future.Future<NetChannel> |
CobbleSocket.connect(InetSocketAddress remoteAddr,
PipelineFactory pipeline)
using TCP/IP connect to remote, and bind Application layer network protocol on this channel.
|
net.hasor.cobble.concurrent.future.Future<NetChannel> |
CobbleSocket.connect(int localPort,
PipelineFactory pipeline)
using TCP/IP connect to local port, and bind Application layer network protocol on this channel.
|
net.hasor.cobble.concurrent.future.Future<NetChannel> |
CobbleSocket.connect(String remoteAddr,
int localPort,
PipelineFactory pipeline)
using TCP/IP connect to local port, and bind Application layer network protocol on this channel.
|
net.hasor.cobble.concurrent.future.Future<NetChannel> |
NetChannel.flush()
flash
|
net.hasor.cobble.concurrent.future.Future<NetChannel> |
NetChannel.sendData(Object writeData,
String pipeName)
sent data to remote, The network IO transfer operation is performed asynchronously.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NetListener.accept(NetChannel channel)
accepted channel
|
default void |
NetListener.close(NetChannel channel)
close channel
|
Copyright © 2022–2024. All rights reserved.