public class CountingSocket4 extends Socket4Decorator
_socket| Constructor and Description |
|---|
CountingSocket4(Socket4 socket) |
| Modifier and Type | Method and Description |
|---|---|
double |
bytesReceived() |
double |
bytesSent() |
double |
messagesSent() |
int |
read(byte[] buffer,
int offset,
int count) |
void |
resetCount() |
void |
write(byte[] bytes,
int offset,
int count) |
close, flush, isConnected, openParallelSocket, setSoTimeout, toStringpublic CountingSocket4(Socket4 socket)
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
write in interface Socket4write in class Socket4Decoratorjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int count)
throws java.io.IOException
read in interface Socket4read in class Socket4Decoratorjava.io.IOExceptionpublic double bytesSent()
public double bytesReceived()
public double messagesSent()
public void resetCount()