taking-rx-back-into-the-20th-century-20061228
[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 BC_Print(acall, acode, aflags, amessage)
26      struct rx_call *acall;
27      afs_int32 acode, aflags;
28      char *amessage;
29 {
30     struct rx_connection *tconn;
31     struct rx_peer *tpeer;
32
33     tconn = rx_ConnectionOf(acall);
34     tpeer = rx_PeerOf(tconn);
35     printf("From %08x: %s <%d>\n", tpeer->host, amessage, acode);
36     return 0;
37 }