Standardize License information
[openafs.git] / src / rx / rx_internal.h
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 #ifndef _RX_INTERNAL_H_
11 #define _RX_INTERNAL_H_
12
13 #ifdef AFS_NT40_ENV
14 #include "rx.h"
15
16 /* rx.c */
17 int rxi_IsConnInteresting(struct rx_connection *aconn);
18
19 /* rx_lwp.c */
20 extern void rxi_Delay(int seconds);
21 extern void rxi_InitializeThreadSupport(void);
22 extern void rxi_Sleep(void *addr);
23 extern void rxi_Wakeup(void *addr);
24 extern int rxi_Recvmsg(osi_socket socket, struct msghdr *msg_p, int flags);
25 extern int rxi_Sendmsg(osi_socket socket, struct msghdr *msg_p, int flags);
26
27 /* rx_packet.c */
28 extern void rxi_FreePacket(struct rx_packet *p);
29 extern int rxi_AllocDataBuf(struct rx_packet *p, int nb, int class);
30 extern void rxi_MorePackets(int apackets);
31 extern afs_int32 rx_SlowGetInt32(struct rx_packet *packet, size_t offset);
32 extern afs_int32 rx_SlowPutInt32(struct rx_packet *packet, size_t offset, afs_int32 data);
33 extern afs_int32 rx_SlowWritePacket(struct rx_packet *packet, int offset,
34                                 int resid, char *in);
35 extern void rxi_SendPacket(struct rx_connection * conn, struct rx_packet *p,
36                     int istack);
37 extern afs_int32 rx_SlowReadPacket(struct rx_packet *packet,
38                                u_int offset, int resid, char *out);
39 extern void rxi_FreeAllPackets(void);
40
41 /* rx_user.c */
42 extern osi_socket rxi_GetUDPSocket(u_short port);
43 extern void rxi_InitPeerParams(struct rx_peer *pp);
44
45
46 /* rx_event.c */
47 extern struct rxevent *rxevent_Post(struct clock *when, void (*func)(),
48                              void *arg, void *arg1);
49
50
51 #endif /* AFS_NT40_ENV */
52 #endif /* _RX_INTERNAL_H_ */