Copyright (C) 1994, Digital Equipment Corp.
common type for client interface to local J-Video server. The video and
audio types are subclassed from it.
INTERFACE Jv;
IMPORT Atom, OSError, Thread;
TYPE
T <: Public;
Public =
MUTEX OBJECT
METHODS
(* LL > self *)
init (pipeName: TEXT): T RAISES {OSError.E};
(* establish connection with local server. "pipeName" is the name of
the named unix socket which the client should connect to *)
close ();
(* close connection to local server, ignoring all exceptions *)
END;
VAR ServerFailure: Atom.T;
may be part of OSError.E list
LL >= t
PROCEDURE Send (t: T; buf: ADDRESS; nbytes: CARDINAL)
RAISES {OSError.E, Thread.Alerted};
PROCEDURE Recv (t: T; buf: ADDRESS; nbytes: CARDINAL)
RAISES {OSError.E, Thread.Alerted};
END Jv.