Name
OutputPipe
Synopsis
Output pipes are used to send messages
to another peer. Messages are sent unreliably: when the
send( )
method returns, the message has been sent
to the network, but there is no way to determine when or if the
message has been delivered (though it is, of course, possible to
build such a protocol yourself on top of JXTA pipes).
Output pipes are created
by the createOutputPipe( )
method of the pipe
service. This method requires an input pipe as a parameter; when the
method returns, the output pipe will have connected to the input
pipe. Such a connection may transparently span multiple networks and
firewalls.
public interface OutputPipe { // Public Instance Methods public abstract void close(); public abstract void send(net.jxta.endpoint.Message msg) throws IOException; }
Passed To
OutputPipeEvent.OutputPipeEvent()
Returned By
OutputPipeEvent.getOutputPipe()
,
PipeService.createOutputPipe()
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.