public class ConnectionTCPImpl extends Object implements IConnection
| 构造器和说明 |
|---|
ConnectionTCPImpl(ServerAddress addr,
ConfigOptions options) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeConfigOptions(ConfigOptions opts) |
void |
close() |
long |
getLastUseTime() |
void |
initialize() |
boolean |
isClosed() |
boolean |
isEndianConvert() |
ByteBuffer |
receiveMessage(boolean endianConvert) |
byte[] |
receiveSysInfoMsg(int msgSize) |
void |
sendMessage(byte[] msg) |
void |
sendMessage(byte[] msg,
int length) |
void |
setEndianConvert(boolean endianConvert) |
void |
shrinkBuffer() |
public ConnectionTCPImpl(ServerAddress addr, ConfigOptions options)
public void setEndianConvert(boolean endianConvert)
setEndianConvert 在接口中 IConnectionpublic boolean isEndianConvert()
isEndianConvert 在接口中 IConnectionpublic long getLastUseTime()
getLastUseTime 在接口中 IConnectionpublic void close()
close 在接口中 IConnectionpublic boolean isClosed()
isClosed 在接口中 IConnectionpublic void changeConfigOptions(ConfigOptions opts) throws BaseException
changeConfigOptions 在接口中 IConnectionBaseExceptionpublic ByteBuffer receiveMessage(boolean endianConvert) throws BaseException
receiveMessage 在接口中 IConnectionBaseExceptionpublic byte[] receiveSysInfoMsg(int msgSize)
throws BaseException
receiveSysInfoMsg 在接口中 IConnectionBaseExceptionpublic void initialize()
throws BaseException
initialize 在接口中 IConnectionBaseExceptionpublic void sendMessage(byte[] msg)
throws BaseException
sendMessage 在接口中 IConnectionBaseExceptionpublic void sendMessage(byte[] msg,
int length)
throws BaseException
sendMessage 在接口中 IConnectionBaseExceptionpublic void shrinkBuffer()
shrinkBuffer 在接口中 IConnectionCopyright © 2015. All Rights Reserved.