jxl.peermi
Class PeerSocketFactory

java.lang.Object
  extended by jxl.peermi.PeerSocketFactory
All Implemented Interfaces:
java.io.Serializable, java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory

public class PeerSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory, java.io.Serializable

PeerSocketFactory is the magical center of Peermi. PeerSocketFactory uses p2psockets to bridge the gap that has seperated RMI and Jxta.

Author:
Alex Lynch
See Also:
Serialized Form

Constructor Summary
PeerSocketFactory()
          Creates a new instance of P2SocketFactory
 
Method Summary
 java.net.ServerSocket createServerSocket(int param)
           
 java.net.Socket createSocket(java.lang.String str, int param)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerSocketFactory

public PeerSocketFactory()
Creates a new instance of P2SocketFactory

Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int param)
                                         throws java.io.IOException
Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String str,
                                    int param)
                             throws java.io.IOException
Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object