edu.unh.sdb.remote
Class RemoteMessenger

java.lang.Object
  extended by edu.unh.sdb.remote.RemoteMessenger

public class RemoteMessenger
extends java.lang.Object


Constructor Summary
RemoteMessenger()
           
 
Method Summary
 java.lang.String ActivelyReceiveControlInfo(java.net.InetAddress peerIP, int peerPort)
           
 java.lang.String ActivelyReceiveControlInfo(java.lang.String peerIP, int peerPort)
          Client To Server Control Information for missing packets.
 int ActivelySendControlInfo(java.lang.String msg, java.net.InetAddress targetIP, int targetPort)
           
 int ActivelySendControlInfo(java.lang.String msg, java.lang.String targetIP, int targetPort)
           
 java.net.InetAddress getRequestAddress()
           
 java.lang.String PassivelyReceiveControlInfo(java.net.ServerSocket ssock, java.util.Set allowedNodes)
           
 int PassivelySendControlInfo(java.net.ServerSocket ssock, java.lang.String s, java.lang.String targetIP)
          TCP Control Traffic to client.
 void setMoribund()
          Tell this object that its thread is about to be interrupted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteMessenger

public RemoteMessenger()
Method Detail

PassivelySendControlInfo

public int PassivelySendControlInfo(java.net.ServerSocket ssock,
                                    java.lang.String s,
                                    java.lang.String targetIP)
TCP Control Traffic to client. We need to add the desired IP so that it only send to the target address.


ActivelyReceiveControlInfo

public java.lang.String ActivelyReceiveControlInfo(java.lang.String peerIP,
                                                   int peerPort)
Client To Server Control Information for missing packets.


ActivelyReceiveControlInfo

public java.lang.String ActivelyReceiveControlInfo(java.net.InetAddress peerIP,
                                                   int peerPort)

PassivelyReceiveControlInfo

public java.lang.String PassivelyReceiveControlInfo(java.net.ServerSocket ssock,
                                                    java.util.Set allowedNodes)

ActivelySendControlInfo

public int ActivelySendControlInfo(java.lang.String msg,
                                   java.lang.String targetIP,
                                   int targetPort)

ActivelySendControlInfo

public int ActivelySendControlInfo(java.lang.String msg,
                                   java.net.InetAddress targetIP,
                                   int targetPort)

getRequestAddress

public java.net.InetAddress getRequestAddress()

setMoribund

public void setMoribund()
Tell this object that its thread is about to be interrupted.