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