public interface ConnectionHandle extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(JDSContext context)
挂接链接
|
void |
disconnect()
注销
|
JDSClientService |
getClient()
获取应用客户端
|
ConnectInfo |
getConnectInfo()
获取链接用户信息
|
boolean |
isconnect()
是否已连接
|
void |
receive(String receiveStr)
接收返回值
|
boolean |
repeatCommand(JDSCommand command,
JDSSessionHandle handle)
转发命令
|
boolean |
repeatMsg(Msg msg,
JDSSessionHandle handle)
转发消息
|
boolean |
send(JDSCommand command)
发送消息
|
boolean |
send(String msgStr)
发送消息
|
JDSClientService getClient() throws JDSException
JDSExceptionConnectInfo getConnectInfo()
void connect(JDSContext context) throws JDSException
context - JDSExceptionboolean isconnect()
throws JDSException
JDSExceptionvoid disconnect()
throws JDSException
JDSExceptionvoid receive(String receiveStr) throws JDSException
JDSExceptionboolean send(String msgStr) throws JDSException
msgStr - JDSExceptionboolean repeatMsg(Msg msg, JDSSessionHandle handle) throws JDSException
msg - handle - JDSExceptionboolean repeatCommand(JDSCommand command, JDSSessionHandle handle) throws JDSException
command - handle - JDSExceptionboolean send(JDSCommand command) throws JDSException
command - JDSExceptionCopyright © 2023 onecode. All rights reserved.