oogp2p
Class ConnectNettable

java.lang.Object
  extended byoogp2p.Nettable
      extended byoogp2p.ConnectNettable
All Implemented Interfaces:
java.io.Serializable

public class ConnectNettable
extends Nettable

See Also:
Serialized Form

Field Summary
(package private)  java.net.InetAddress connectToIP
           
(package private)  java.lang.String connectToUserName
           
 
Fields inherited from class oogp2p.Nettable
myApplication, myReceiver, mySender
 
Constructor Summary
ConnectNettable(java.lang.String username, java.net.InetAddress ipaddr)
          Constructor.
 
Method Summary
 java.lang.Object getContents()
           
 java.net.InetAddress getToIP()
           
 java.lang.String getToUserName()
           
 
Methods inherited from class oogp2p.Nettable
getApplicationName, getReceiver, getSender, setReceiver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectToIP

java.net.InetAddress connectToIP

connectToUserName

java.lang.String connectToUserName
Constructor Detail

ConnectNettable

public ConnectNettable(java.lang.String username,
                       java.net.InetAddress ipaddr)
                throws java.net.UnknownHostException
Constructor.

Parameters:
username - name to connect to
ipaddr - ip address to connect to
Method Detail

getToIP

public java.net.InetAddress getToIP()

getToUserName

public java.lang.String getToUserName()

getContents

public java.lang.Object getContents()
Specified by:
getContents in class Nettable