| 程序包 | 说明 |
|---|---|
| net.hasor.neta.channel |
| 限定符和类型 | 字段和说明 |
|---|---|
protected net.hasor.cobble.concurrent.future.Future<NetListen> |
NetListen.closeFuture |
| 限定符和类型 | 方法和说明 |
|---|---|
NetListen |
NetListen.addListener(NetListener listener)
add
NetListener |
NetListen |
CobbleSocket.findListen(int port)
find NetListen by listenPort
|
NetListen |
NetChannel.getSource()
Returns the
NetListen that accepts this channel |
NetListen |
CobbleSocket.listen(InetSocketAddress listen,
PipelineFactory pipeline,
NetListenOptions options)
using TCP/IP Listen on the port and bind Application layer network protocol to the accepted channels.
|
NetListen |
CobbleSocket.listen(int listenPort,
PipelineFactory pipeline)
using TCP/IP Listen on the port and bind Application layer network protocol to the accepted channels.
|
NetListen |
CobbleSocket.listen(String listenAddr,
int listenPort,
PipelineFactory pipeline)
using TCP/IP Listen on the port and bind Application layer network protocol to the accepted channels.
|
NetListen |
NetListen.removeListener(NetListener listener)
remove
NetListener |
NetListen |
NetListen.resume()
set suspend is false
all new accept socket will be closed when suspend = true.
|
NetListen |
NetListen.suspend()
set suspend is true
all new accept socket will be closed when suspend = true.
|
| 限定符和类型 | 方法和说明 |
|---|---|
net.hasor.cobble.concurrent.future.Future<NetListen> |
NetListen.close() |
net.hasor.cobble.concurrent.future.Future<NetListen> |
NetListen.closeNow() |
Copyright © 2022–2024. All rights reserved.