File: socket.h

package info (click to toggle)
mpich 4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,184 kB
  • sloc: ansic: 1,040,629; cpp: 82,270; javascript: 40,763; perl: 27,933; python: 16,041; sh: 14,676; xml: 14,418; f90: 12,916; makefile: 9,270; fortran: 8,046; java: 4,635; asm: 324; ruby: 103; awk: 27; lisp: 19; php: 8; sed: 4
file content (41 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2016 Intel Corporation.  All rights reserved.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

#ifndef _FI_WIN_SYS_SOCKET_H_
#define _FI_WIN_SYS_SOCKET_H_

#include "ofi_osd.h"
#include "rdma/fabric.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

struct msghdr {
	void * msg_name; /* optional address */
	socklen_t msg_namelen; /* size of address */
	struct iovec * msg_iov; /* scatter/gather array */
	size_t msg_iovlen; /* # elements in msg_iov */
	void * msg_control; /* ancillary data, see below */
	socklen_t msg_controllen; /* ancillary data buffer len */
	int msg_flags; /* flags on received message */
};

ssize_t sendmsg(SOCKET sd, struct msghdr *msg, int flags);
ssize_t recvmsg(SOCKET sd, struct msghdr *msg, int flags);

#ifdef __cplusplus
extern }
#endif /* __cplusplus */

#endif /* _FI_WIN_SYS_SOCKET_H_ */