FileDocCategorySizeDatePackage
MonitoringSocket_RMIServerSocketFactory.javaAPI DocExample751Thu Nov 08 00:23:22 GMT 2001com.ora.rmibook.chapter18.sockets

MonitoringSocket_RMIServerSocketFactory.java

package com.ora.rmibook.chapter18.sockets;


import java.rmi.server.*;
import java.net.*;
import java.io.*;


public class MonitoringSocket_RMIServerSocketFactory
    implements RMIServerSocketFactory {
    private int _hashCode = "MonitoringSocket_RMIServerSocketFactory".hashCode();
    public ServerSocket createServerSocket(int port) {
        try {
            return new MonitoringServerSocket(port);
        } catch (IOException e) {
        }
        return null;
    }

    public boolean equals(Object object) {
        if (object instanceof MonitoringSocket_RMIServerSocketFactory) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return _hashCode;
    }
}