FileDocCategorySizeDatePackage
LoggingServerSocket.javaAPI DocExample660Thu Nov 08 00:23:28 GMT 2001com.ora.rmibook.chapter2.sockets

LoggingServerSocket

public class LoggingServerSocket extends ServerSocket

Fields Summary
private String
_fileNamePrefix
private int
_fileIndex
Constructors Summary
public LoggingServerSocket(int port, String fileNamePrefix)

        super (port);
        _fileNamePrefix = fileNamePrefix;
        _fileIndex = 0;
    
Methods Summary
public java.net.Socketaccept()

        Socket returnValue = new LoggingSocket(_fileNamePrefix + "SocketNumber" + _fileIndex);

        _fileIndex++;
        implAccept(returnValue);
        return returnValue;