CTL.Comm
Class PipeCommunicator

java.lang.Object
  extended by CTL.Comm.PipeCommunicator

public class PipeCommunicator
extends java.lang.Object

Communication over SSH pipes

See Also:
TCPCommunicator

Constructor Summary
PipeCommunicator()
           
 
Method Summary
 void accept()
           
 void close()
           
 void connect(PeerID remote)
           
 void listen()
           
 void notifyErr()
           
 PeerID pid()
           
 byte[] recv()
           
 void send(byte[] data, int len, boolean debug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipeCommunicator

public PipeCommunicator()
Method Detail

notifyErr

public void notifyErr()

pid

public PeerID pid()

send

public void send(byte[] data,
                 int len,
                 boolean debug)
          throws java.io.IOException
Throws:
java.io.IOException

recv

public byte[] recv()
            throws java.io.IOException,
                   CTLException
Throws:
java.io.IOException
CTLException

accept

public void accept()
            throws java.io.IOException
Throws:
java.io.IOException

connect

public void connect(PeerID remote)
             throws java.net.UnknownHostException,
                    java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

listen

public void listen()
            throws java.io.IOException
Throws:
java.io.IOException