JXTA

net.jxta.pipe
Interface OutputPipeListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
JxtaBiDiPipe, JxtaSocket

public interface OutputPipeListener
extends EventListener

The listener interface for receiving OutputPipe resolution events. The following example illustrates how to implement a OutputPipeListener:

     public class MyService implements OutputPipeListener {
        ..
        ..
        pipe.createOutputPipe(pipeAdv, this);
        ..
        ..
        public void outputPipeEvent(OutputPipeEvent event) {

        OutputPipe op = event.getOutputPipe();
        }
    }
 


Method Summary
 void outputPipeEvent(OutputPipeEvent event)
          Called when a input pipe has been located for a previously registered pipe.
 

Method Detail

outputPipeEvent

void outputPipeEvent(OutputPipeEvent event)
Called when a input pipe has been located for a previously registered pipe. The event contains an OutputPipe which can be used to communicate with the remote peer.

Parameters:
event - the event

JXSE