| 构造器和说明 |
|---|
EmbeddedSoContext() |
EmbeddedSoContext(SoConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
closeChannel(long channelID,
String message)
force close network channel, like
SoChannel.closeNow() |
SoChannel<?> |
findChannel(long channelID)
find SoChannel by id
|
CobbleSocket |
getCobble()
get CobbleSocket
|
SoConfig |
getConfig()
return global config.
|
SocketAddress |
getRemoteAddress(long channelID)
get remote address of the channel
|
SoResManager |
getResourceManager()
default
SoResManager |
boolean |
isClose(long channelID)
test the channel has been closed
|
EmbeddedTransfer |
joinChannel(EmbeddedChannel client,
EmbeddedChannel server)
that are used in an embedded fashion, connected two
EmbeddedTransfer makes it a server/client. |
protected static SoConfig |
newSoConfig() |
protected static long |
nextID() |
void |
openChannel(SoChannel<?> channel)
new channel.
|
public EmbeddedSoContext()
public EmbeddedSoContext(SoConfig config)
protected static SoConfig newSoConfig()
protected static long nextID()
public SoResManager getResourceManager()
SoContextSoResManagergetResourceManager 在接口中 SoContextpublic SocketAddress getRemoteAddress(long channelID)
SoContextgetRemoteAddress 在接口中 SoContextpublic void openChannel(SoChannel<?> channel)
public boolean isClose(long channelID)
public SoChannel<?> findChannel(long channelID)
SoContextfindChannel 在接口中 SoContextpublic CobbleSocket getCobble()
SoContextprotected void closeChannel(long channelID,
String message)
SoChannel.closeNow()public EmbeddedTransfer joinChannel(EmbeddedChannel client, EmbeddedChannel server)
EmbeddedTransfer makes it a server/client.client - client side EmbeddedTransferserver - server side EmbeddedTransferCopyright © 2022–2024. All rights reserved.