oogp2p
Class Nettable
java.lang.Object
oogp2p.Nettable
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ChatNettable, ChordNettable, ConnectNettable, FileNettable, PastryNettable, RecordNettable, SearchNettable, StringNettable
- public abstract class Nettable
- extends java.lang.Object
- implements java.io.Serializable
Nettable.java
This is the object that will be passed around the network.
- Version:
- 0.5
- Author:
- OOGS
- See Also:
- Serialized Form
|
Constructor Summary |
Nettable()
|
Nettable(java.net.InetAddress receiver)
|
Nettable(java.net.InetAddress sender,
java.net.InetAddress receiver)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myApplication
protected java.lang.String myApplication
mySender
protected java.net.InetAddress mySender
myReceiver
protected java.net.InetAddress myReceiver
Nettable
public Nettable()
Nettable
public Nettable(java.net.InetAddress sender,
java.net.InetAddress receiver)
Nettable
public Nettable(java.net.InetAddress receiver)
getContents
public abstract java.lang.Object getContents()
setSender
private void setSender(java.net.InetAddress sender)
setReceiver
public void setReceiver(java.net.InetAddress receiver)
getSender
public java.net.InetAddress getSender()
getReceiver
public java.net.InetAddress getReceiver()
getApplicationName
public java.lang.String getApplicationName()