02dda6d0da588c580b4527e78474f2fc6010459e
[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 #include <roken.h>
15
16 #ifdef AFS_NT40_ENV
17 #include <winsock2.h>
18 #else
19 #include <sys/socket.h>
20 #endif
21 #include <rx/rx.h>
22
23 /* services available on incoming message port */
24 int
25 SBC_Print(struct rx_call *acall, afs_int32 acode, afs_int32 aflags,
26          char *amessage)
27 {
28     struct rx_connection *tconn;
29     struct rx_peer *tpeer;
30
31     tconn = rx_ConnectionOf(acall);
32     tpeer = rx_PeerOf(tconn);
33     printf("From %08x: %s <%d>\n", tpeer->host, amessage, acode);
34     return 0;
35 }