AbstractPeer
Keywords: uk.ac.ic.doc.automed.p2p.communication.AbstractPeer class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD