uk.ac.ic.doc.automed.p2p.communication
Class AbstractPeer

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.communication.AbstractPeer

public class AbstractPeer
extends java.lang.Object

Author:
Charis TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
AbstractPeer(RequestListener requestListener)
           
 
Method Summary
 int getPort()
           
 java.io.InputStream getReplyForRequest(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage request, java.net.InetAddress address, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPeer

public AbstractPeer(RequestListener requestListener)
             throws java.io.IOException
Throws:
java.io.IOException - if the peer cannot be created, due to communication problems with the local P2PRegistry.
Method Detail

getReplyForRequest

public java.io.InputStream getReplyForRequest(uk.ac.ic.doc.automed.p2p.messages.abstractlayer.AbstractMessage request,
                                              java.net.InetAddress address,
                                              int port)
                                       throws java.io.IOException
Throws:
java.io.IOException

getPort

public int getPort()