Coda Distributed File System
version.h
Go to the documentation of this file.
1#ifndef _BLURB_
2#define _BLURB_
3/*
4
5 Coda: an Experimental Distributed File System
6 Release 6
7
8 Copyright (c) 1987-2003 Carnegie Mellon University
9 All Rights Reserved
10
11Permission to use, copy, modify and distribute this software and its
12documentation is hereby granted, provided that both the copyright
13notice and this permission notice appear in all copies of the
14software, derivative works or modified versions, and any portions
15thereof, and that both notices appear in supporting documentation, and
16that credit is given to Carnegie Mellon University in all documents
17and publicity pertaining to direct or indirect use of this code or its
18derivatives.
19
20CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS,
21SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS
22FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON
23DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER
24RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF
25ANY DERIVATIVE WORK.
26
27Carnegie Mellon encourages users of this software to return any
28improvements or extensions that they make, and to grant Carnegie
29Mellon the rights to redistribute these changes without encumbrance.
30*/
31#endif /*_BLURB_*/
32
33#ifndef VERSION_H
34#define VERSION_H
35
36class connection_entry : public olink {
37 RPC2_Handle myCid;
38 long myClientType;
39
40public:
42 long client_type(void) { return myClientType; }
43 RPC2_Handle cid(void) { return myCid; }
44 void print();
45 void print(FILE *);
46 void print(int);
47 void print(int, FILE *);
48};
49
51 friend long MondEstablishConn(RPC2_Handle, unsigned long, long, long,
52 SpareEntry[]);
53 ohashtab *table;
54
55public:
59 void LogConnections(int, FILE *);
60 int PurgeConnections(void);
61 connection_table(int = 1024);
63};
64
67
68#endif VERSION_H
Definition: version.h:36
void print()
Definition: version.c:69
connection_entry(RPC2_Handle, long)
Definition: version.c:63
long client_type(void)
Definition: version.h:42
RPC2_Handle cid(void)
Definition: version.h:43
Definition: version.h:50
connection_entry * GetConnection(RPC2_Handle)
Definition: version.c:100
int ConnectionValid(RPC2_Handle, long)
Definition: version.c:111
void LogConnections(int, FILE *)
Definition: version.c:134
connection_table(int=1024)
Definition: version.c:162
int RemoveConnection(RPC2_Handle)
Definition: version.c:124
int PurgeConnections(void)
Definition: version.c:145
friend long MondEstablishConn(RPC2_Handle, unsigned long, long, long, SpareEntry[])
Definition: version.c:178
~connection_table(void)
Definition: version.c:172
Definition: ohash.h:45
RPC2_Integer RPC2_Handle
Definition: rpc2.h:345
char * HostNameOfConn(RPC2_Handle)
Definition: version.c:220
connection_table * ClientTable
Definition: version.c:56