Rx: Build rxperf test application on Windows
[openafs.git] / src / rx / rx_xmit_nt.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_XMIT_NT_H_
11 #define _RX_XMIT_NT_H_
12
13 typedef struct iovec
14 {
15     unsigned long iov_len;
16     char *iov_base;
17 }
18 iovec_t;
19
20 struct msghdr {
21     char *msg_name;
22     int msg_namelen;
23     iovec_t *msg_iov;
24     int msg_iovlen;
25     caddr_t msg_accrights;
26     int msg_accrightslen;
27 };
28
29 extern int rxi_sendmsg(osi_socket socket, struct msghdr *msgP, int flags);
30 #define sendmsg rxi_sendmsg
31 extern int rxi_recvmsg(osi_socket socket, struct msghdr *msgP, int flags);
32 #define recvmsg rxi_recvmsg
33
34 extern void rxi_xmit_init(osi_socket socket);
35 #endif /* _RX_XMIT_NT_H_ */