Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / rx / bulk.example / bulk.xg
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 package BULK_
11
12 %#include <rx/rx.h>
13 %#include <rx/rx_null.h>
14
15 %#define BULK_SERVER_PORT 5000
16 %#define BULK_SERVICE_PORT 0 /* i.e. user server's port */
17 %#define BULK_SERVICE_ID 4
18
19 /* Maximum number of requests that will be handled by this service simultaneously */
20 /* This number will also be guaranteed to execute in parallel if no services' requests are being processed */
21 %#define BULK_MAX 2
22 /* Minimum number of requests that are guaranteed to be handled immediately */
23 %#define BULK_MIN 1
24
25 %#define BULK_NAME_MAX 1024
26
27 %#define BULK_ERROR 1 /* Error used to abort a bulk transfer */
28
29
30 FetchFile(IN int verbose, string name<BULK_NAME_MAX>) split = 1;
31 StoreFile(IN int verbose, string name<BULK_NAME_MAX>) split = 2;