FileDocCategorySizeDatePackage
CodecServerSocket.javaAPI DocExample459Thu Mar 30 13:48:50 BST 2000tuning.distrib.rmi

CodecServerSocket.java

package tuning.distrib.rmi;

import java.io.*;
import java.net.*;
import java.util.zip.*;

public class CodecServerSocket
  extends ServerSocket
{
  public CodecServerSocket(int port)
    throws IOException
  {
    super(port);
  }

  public Socket accept()
    throws IOException
  {
    //see the ServerSocket.implAccept() docs for this weird implementation
    Socket s = new CodecSocket();
    implAccept(s);
    return s;
  }

}