public class SocketIO extends Object implements IOInterface
| Constructor and Description |
|---|
SocketIO(SocketChannel sock)
Creates a new
SocketIO instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesRead()
Method description
|
boolean |
checkCapabilities(String caps)
Method description
|
long |
getBuffOverflow(boolean reset)
Method description
|
long |
getBytesReceived(boolean reset)
Method description
|
long |
getBytesSent(boolean reset)
Method description
|
int |
getInputPacketSize()
Method description
|
SocketChannel |
getSocketChannel()
Method description
|
void |
getStatistics(StatisticsList list,
boolean reset)
Method description
|
long |
getTotalBuffOverflow()
Method description
|
long |
getTotalBytesReceived()
Method description
|
long |
getTotalBytesSent()
Method description
|
boolean |
isConnected()
Method description
|
boolean |
isRemoteAddress(String addr)
Method description
|
ByteBuffer |
read(ByteBuffer buff)
Method description
|
void |
setLogId(String logId)
Method description
|
void |
stop()
Method description
|
String |
toString()
Method description
|
boolean |
waitingToSend()
Method description
|
int |
waitingToSendSize()
Method description
|
int |
write(ByteBuffer buff)
Method description
|
public SocketIO(SocketChannel sock) throws IOException
SocketIO instance.sock - IOExceptionpublic int bytesRead()
bytesRead in interface IOInterfacepublic boolean checkCapabilities(String caps)
checkCapabilities in interface IOInterfacecaps - public int getInputPacketSize()
throws IOException
getInputPacketSize in interface IOInterfaceIOExceptionpublic SocketChannel getSocketChannel()
getSocketChannel in interface IOInterfacepublic void getStatistics(StatisticsList list, boolean reset)
getStatistics in interface IOInterfacelist - reset - public long getBytesSent(boolean reset)
getBytesSent in interface IOInterfacereset - public long getTotalBytesSent()
getTotalBytesSent in interface IOInterfacepublic long getBytesReceived(boolean reset)
getBytesReceived in interface IOInterfacereset - public long getTotalBytesReceived()
getTotalBytesReceived in interface IOInterfacepublic long getBuffOverflow(boolean reset)
getBuffOverflow in interface IOInterfacereset - public long getTotalBuffOverflow()
getTotalBuffOverflow in interface IOInterfacepublic boolean isConnected()
isConnected in interface IOInterfacepublic boolean isRemoteAddress(String addr)
isRemoteAddress in interface IOInterfaceaddr - public ByteBuffer read(ByteBuffer buff) throws IOException
read in interface IOInterfacebuff - IOExceptionpublic void stop()
throws IOException
stop in interface IOInterfaceIOExceptionpublic boolean waitingToSend()
waitingToSend in interface IOInterfacepublic int waitingToSendSize()
waitingToSendSize in interface IOInterfacepublic int write(ByteBuffer buff) throws IOException
write in interface IOInterfacebuff - IOExceptionpublic void setLogId(String logId)
setLogId in interface IOInterfacelogId - Copyright © 2014 "Tigase, Inc.". All rights reserved.