Standardize License information
[openafs.git] / src / bucoord / btest.c
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 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <netinet/in.h>
13 #include <netdb.h>
14 #include <lwp.h>
15 #include <rx/rx.h>
16 #include <afs/bubasics.h>
17 #include "bc.h"
18
19 extern struct rx_securityClass *rxnull_NewClientSecurityObject();
20
21 #include "AFS_component_version_number.c"
22
23 main(argc, argv)
24 int argc;
25 char **argv; {
26     struct rx_securityClass *rxsc;
27     register struct rx_connection *tconn;
28     register afs_int32 code;
29
30     rx_Init(0);
31     rxsc = rxnull_NewClientSecurityObject();
32     tconn = rx_NewConnection(htonl(0x7f000001), htons(BC_MESSAGEPORT), 1, rxsc, 0);
33     code = BC_Print(tconn, 1, 2, argv[1]);
34     printf("Done, code %d\n", code);
35     exit(0);
36 }