2 .\" $Log: libutilPVM.1,v $
3 .\" Revision 1.1 1994/02/25 11:16:01 markc
7 .TH LIBUTILPVM 1L PARADYN "\\n(mo/\\n(dy/19\\n(yr"
9 libutilPVM \- Support Library
12 This library provides utility functions. It provides a list class, a hash table class, and functions to support client-server communications using XDR/pvm/threads.
13 .SH "LIST CLASS SYNOPSIS"
14 .B template <class Type> class List {
22 .B friend ostream &operator<<(ostream&, List<Type>&);
26 .B void add(Type data, void *key);
28 .B void add(Type data);
30 .B Boolean addUnique(Type data);
32 .B Boolean addUnique(Type data, void *key);
34 .B Type find(void *key);
36 .B Boolean remove(void *key);
42 .B void operator +=(List<Type> mergee);
44 .B Type operator ++();
46 .B void map (void (*map_function)(const Type item));
50 .B const Type getCurrent();
54 .B void advanceCurrent();
58 .B ListItem<Type> *head;
60 .B ListItem<Type> *current;
64 .SH "HASH TABLE CLASS SYNOPSIS"
66 .B template <class Type> class HTable {
70 .B friend ostream &operator<<(ostream&, HTable<Type>&);
76 .B void add(Type data, void *key);
80 .B Boolean addUnique(Type data, void *key);
82 .B Type find(void *key);
84 .B Boolean remove(void *key);
86 .B Type operator =(HTable<Type> arg);
90 .B Type operator ++();
96 .B List<Type> **table;
98 .B List<Type> currList;
106 .SH "LIBRARY SYNOPSIS"
108 .B int RPCprocessCreate (pid, host, User, command,
121 .B int RPC_readReady (fd)
125 .B int RPC_setup_socket (socket_fd, family, type)
133 .B char **RPC_make_arg_list (program, family, type,
146 .B int RPC_undo_arg_list (argc, arg_list, machine,
147 .B family, type, socket, flag)
163 .B int RPC_getConnect (fd)
167 .SH "LIST CLASS DESCRIPTION"
169 .SH "HASH TABLE DESCRIPTION"
171 .SH "LIBRARY DESCRIPTION"
173 .B int RPCprocessCreate (pid, host, User, command,
186 stdout will be closed for the exec'd program. The pid is returned in pid.
187 Host is the name of the host to start the program on. Command is the name
188 of the command to exec. If args is non-null, it will be used as an argument
189 for the exec. Thus, command should be the first entry in args. If args is
190 null, command is passed as the argument list.
192 .B int RPC_readReady (fd)
196 .B int RPC_setup_socket (socket_fd, family, type)
204 .B char **RPC_make_arg_list (program, family, type,
217 .B int RPC_undo_arg_list (argc, arg_list, machine,
218 .B family, type, socket, flag)
234 .B int RPC_getConnect (fd)
241 Copyright 1994, The Paradyn Software Team.
243 Mark Callaghan (markc@cs.wisc.edu)