8.5 Commpipe Interface

ORIGIN '~beta/basiclib/basicsystemenv';
LIB_DEF 'processpipe' '../lib';

(*
 * COPYRIGHT
 *       Copyright (C) Mjolner Informatics 1995-97
 *       All rights reserved.
 *)

MDBODY default  'private/commpipe_unix'
       ppcmac   'private/commpipe_mac'
       nti      'private/commpipe_nt';

INCLUDE 'private/sysFdStream';


--- systemlib:attributes ---
propagateException: (# msg: ^Text enter msg[] do INNER #);

pipe:
  (# <<SLOT pipelib:attributes>>;

     
     (* OPERATIONS *)
     init:<(# error:< propagateException
            (# do INNER; msg -> pipeError #);
       ...
       #);
     
     close:< (# ... #);
     
     pipeException: Exception
       (#
       enter msg
       do (if not msg.empty then msg.newline if);
          INNER;
       #);
     
     pipeError:< PipeException;

     
     (* ATTRIBUTES *)
     readEnd: ^fdStream;
     writeEnd: ^fdStream;

     private: @...;
#)


8.5 Commpipe Interface
© 1994-2002 Mjølner Informatics
[Modified: Thursday August 6th 1998 at 13:58]