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