next up previous contents index
Next: Program Flow Up: The Implementation Previous: Communication with TACO   Contents   Index


Overview of Files and Subroutines

Here follows a list of the program files and their contents. The list is given here only to provide a minimal overview of the code written. Excerpts from the server program, pserver.c, and the include file for client applications, pclient.h, are given in Appendix A. An overview of which files are included in which files can be seen in Figure 6.5.

pclient.h: Include file for client applications.6.2

- contains all of those primitives described in Section 5.7.1 and Section 5.7.2 except p_perror.

Figure 6.5: Include files

ptacod.c: Communication between $\mathcal{P}$$e$$\mathcal{S}$$t$$\mathcal{O}$ and TACO. It is in this file that the intervals for connected, weakly connected, and disconnected operation are defined (see Figure 6.1, p. [*]).

Should be linked with the TACO mob library:

 cc -o ptacod -I/home/projects/tacoo/tacosys/moblib/include  \
 -L/home/projects/tacoo/tacosys/moblib/lib -D LINUX ptacod.c \
 -lmob
Is supposed to run on client machine in the background, and the TACO link daemon, linkd, should also be running.

--

pserver.c: $\mathcal{P}$$e$$\mathcal{S}$$t$$\mathcal{O}$ server program.

Is supposed to be running on the server machine!

--

pesto.h: Shared include file for clients and server.

Also contains all necessary includes of standard libraries, all commonly used defines, a type definition of the buffer used for exchanging messages between server and client, and global variables (such as the $\mathcal{P}$$e$$\mathcal{S}$$t$$\mathcal{O}$ error number variable int pso_errno).

--

ppclient.h: Include file for client code. Contains miscellaneous help functions used by the various library functions in pclient.h.

--

pinfo.h: Include file for client code. Contains functions that read, write, and update caching information for files.

--

ptaco.h: Include file for client code. Contains the function int ptaco() used for determining communication status as reported by ptacod.c.

--

pname.h: Include file for client code. Contains functions for mapping file pointer to file names and lock expiration times. Uses the NAME & _nameb structures defined in ppclient.h in a similar manner to the handling of open file pointers in [21, Ch.8].

--

ppserver.h: Include file for server code. Contains miscellaneous help functions used in the server program.

--

plock.h: Include file for server code. Contains functions that read, write, and update locking information for files.



Footnotes

... applications.6.2
Will some day be implemented as a library.

next up previous contents index
Next: Program Flow Up: The Implementation Previous: Communication with TACO   Contents   Index

michael@garfield.dk
2000-10-13