Coda Distributed File System
venuscb.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19/*
20 *
21 * Specification of the Venus CallBack server.
22 *
23 */
24
25#ifndef _VENUSCB_H_
26#define _VENUSCB_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <stdio.h>
33#include <rpc2/rpc2.h>
34
35#ifdef __cplusplus
36}
37#endif
38
39/* from venus */
40#include "vproc.h"
41
42const int DFLT_MAXCBSERVERS = 5;
43const int UNSET_MAXCBSERVERS = -1;
44
45class callbackserver : public vproc {
46 friend void CallBackInit();
47
48 RPC2_RequestFilter filter;
49 RPC2_Handle handle;
50 RPC2_PacketBuffer *packet;
51
53 callbackserver(callbackserver &); /* not supported! */
54 int operator=(callbackserver &); /* not supported! */
56
57protected:
58 virtual void main(void);
59};
60
61extern int MaxCBServers;
62extern int cbbreaks;
63extern void CallBackInit();
64
65#endif /* _VENUSCB_H_ */
Definition: venuscb.h:45
friend void CallBackInit()
Definition: venuscb.cc:67
virtual void main(void)
Definition: venuscb.cc:122
Definition: vproc.h:151
RPC2_Integer RPC2_Handle
Definition: rpc2.h:345
Definition: rpc2.h:406
Definition: rpc2.h:508
int MaxCBServers
Definition: venuscb.cc:64
const int UNSET_MAXCBSERVERS
Definition: venuscb.h:43
void CallBackInit()
Definition: venuscb.cc:67
int cbbreaks
Definition: venuscb.cc:65
const int DFLT_MAXCBSERVERS
Definition: venuscb.h:42