au.com.zip.cs
Class MPX

java.lang.Object
  extended by au.com.zip.cs.MPX

public class MPX
extends Object

Multiplex streams over a bidirectional channel.

Author:
Cameron Simpson <cs@zip.com.au> 21dec2001

Constructor Summary
MPX(InputStream r, OutputStream w)
           
 
Method Summary
 MPXChannelSet newChannelSet(int forRead, int forWrite, byte[] rqdata)
          Arrange a new channel set for communication.
 void qPacket(int ch, byte[] packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPX

public MPX(InputStream r,
           OutputStream w)
Method Detail

newChannelSet

public final MPXChannelSet newChannelSet(int forRead,
                                         int forWrite,
                                         byte[] rqdata)
                                  throws InterruptedException
Arrange a new channel set for communication.

Parameters:
forRead - the number of input channels to arrange.
forWrite - the number of output channels to arrange.
rqdata - the request to make of the far end matching this channel set.
Throws:
InterruptedException

qPacket

public final void qPacket(int ch,
                          byte[] packet)