d7aad5de0b7571206629a23571602c328c14a5e1
[openafs.git] / src / bucoord / server.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 <afsconfig.h>
12 #include <afs/param.h>
13
14 RCSID
15     ("$Header$");
16
17 #ifdef AFS_NT40_ENV
18 #include <winsock2.h>
19 #else
20 #include <sys/socket.h>
21 #endif
22 #include <rx/rx.h>
23
24 /* services available on incoming message port */
25 int
26 BC_Print(struct rx_call *acall, afs_int32 acode, afs_int32 aflags, 
27          char *amessage)
28 {
29     struct rx_connection *tconn;
30     struct rx_peer *tpeer;
31
32     tconn = rx_ConnectionOf(acall);
33     tpeer = rx_PeerOf(tconn);
34     printf("From %08x: %s <%d>\n", tpeer->host, amessage, acode);
35     return 0;
36 }