Package tigase.io
Class SocketIO
java.lang.Object
tigase.io.SocketIO
- All Implemented Interfaces:
IOInterface
Describe class SocketIO here.
Created: Sat May 14 07:18:30 2005
Created: Sat May 14 07:18:30 2005
- Author:
- Artur Hefczyc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
checkCapabilities
(String caps) long
getBuffOverflow
(boolean reset) long
getBytesReceived
(boolean reset) long
getBytesSent
(boolean reset) int
void
getStatistics
(StatisticsList list, boolean reset) long
long
long
boolean
boolean
isRemoteAddress
(String addr) read
(ByteBuffer buff) void
void
stop()
toString()
boolean
int
int
write
(ByteBuffer buff)
-
Constructor Details
-
SocketIO
- Throws:
IOException
-
-
Method Details
-
bytesRead
public int bytesRead()- Specified by:
bytesRead
in interfaceIOInterface
-
checkCapabilities
- Specified by:
checkCapabilities
in interfaceIOInterface
-
getInputPacketSize
- Specified by:
getInputPacketSize
in interfaceIOInterface
- Throws:
IOException
-
getSocketChannel
- Specified by:
getSocketChannel
in interfaceIOInterface
-
getStatistics
- Specified by:
getStatistics
in interfaceIOInterface
-
getBytesSent
public long getBytesSent(boolean reset) - Specified by:
getBytesSent
in interfaceIOInterface
-
getTotalBytesSent
public long getTotalBytesSent()- Specified by:
getTotalBytesSent
in interfaceIOInterface
-
getBytesReceived
public long getBytesReceived(boolean reset) - Specified by:
getBytesReceived
in interfaceIOInterface
-
getTotalBytesReceived
public long getTotalBytesReceived()- Specified by:
getTotalBytesReceived
in interfaceIOInterface
-
getBuffOverflow
public long getBuffOverflow(boolean reset) - Specified by:
getBuffOverflow
in interfaceIOInterface
-
getTotalBuffOverflow
public long getTotalBuffOverflow()- Specified by:
getTotalBuffOverflow
in interfaceIOInterface
-
isConnected
public boolean isConnected()- Specified by:
isConnected
in interfaceIOInterface
-
isRemoteAddress
- Specified by:
isRemoteAddress
in interfaceIOInterface
-
read
- Specified by:
read
in interfaceIOInterface
- Throws:
IOException
-
stop
- Specified by:
stop
in interfaceIOInterface
- Throws:
IOException
-
toString
-
waitingToSend
public boolean waitingToSend()- Specified by:
waitingToSend
in interfaceIOInterface
-
waitingToSendSize
public int waitingToSendSize()- Specified by:
waitingToSendSize
in interfaceIOInterface
-
write
- Specified by:
write
in interfaceIOInterface
- Throws:
IOException
-
setLogId
- Specified by:
setLogId
in interfaceIOInterface
-