com.stepsoncats.gublists
Class InetReqPipe

java.lang.Object
  |
  +--com.stepsoncats.gublists.FlexPipe
        |
        +--com.stepsoncats.gublists.InetReqPipe

public class InetReqPipe
extends FlexPipe

An InetReqPipe is a FlexPipe designed for exchanging InetReq objects (tokens of Internet activity, e.g., datagrams read or to be written) between threads.


Constructor Summary
InetReqPipe()
           
 
Method Summary
 InetReq read()
          Read an InetReq sent by some other thread via this FlexPipe.
 void write(InetReq req)
          Send an InetReq to another thread via this FlexPipe.
 
Methods inherited from class com.stepsoncats.gublists.FlexPipe
attach, detach, pollForItem, readItem, writeItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetReqPipe

public InetReqPipe()
Method Detail

write

public void write(InetReq req)
Send an InetReq to another thread via this FlexPipe.
Parameters:
req - The InetReq to send.

read

public InetReq read()
             throws java.lang.InterruptedException
Read an InetReq sent by some other thread via this FlexPipe.
Returns:
The InetReq that was sent.


Copyright 2003 Steps On Cats