springs.util
Class ServerSocketCountingBytes

java.lang.Object
  |
  +--java.net.ServerSocket
        |
        +--springs.util.ServerSocketCountingBytes

public class ServerSocketCountingBytes
extends java.net.ServerSocket

A socket with a count of the transmitted bytes.

Author:
Sergio Ilarri Artigas

Field Summary
 
Fields inherited from class java.net.ServerSocket
 
Constructor Summary
ServerSocketCountingBytes()
          Constructor.
ServerSocketCountingBytes(int port)
          Constructor.
 
Method Summary
 java.net.Socket accept()
          Creates a socket of type MySocketCountingBytes and then calls implAccept to wait for a client connection.
 
Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerSocketCountingBytes

public ServerSocketCountingBytes()
                          throws java.io.IOException
Constructor.


ServerSocketCountingBytes

public ServerSocketCountingBytes(int port)
                          throws java.io.IOException
Constructor.

Parameters:
port - the port number.
Method Detail

accept

public java.net.Socket accept()
                       throws java.io.IOException
Creates a socket of type MySocketCountingBytes and then calls implAccept to wait for a client connection.

Overrides:
accept in class java.net.ServerSocket
java.io.IOException