<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I couldn't find an answer from the man pages, and I didn't want to
open a ticket in Github, so I decided to ask this on the mailing
list.. so here it is:<br>
<br>
I am using the sockets provider, libfabric 1.2.0, and I have an
EP_MSG connection between two endpoints. <br>
I am using fi_sendmsg on one endpoint to send a
<meta http-equiv="content-type" content="text/html; charset=utf-8">
scatter-gather list of 3 buffers (two headers and a payload).<br>
<br>
On the receiving endpoint I am using fi_recvmsg, having populated
only 1 item in the scatter-gather list, expecting to receive the
first few bytes of the first header. (That's because this header
contains additional information about the overall message size and I
need this in order to allocate the payload buffers).<br>
<br>
I was expecting the function to fill the data and wait for a next
call to collect the rest, however it just fails with
<meta http-equiv="content-type" content="text/html; charset=utf-8">
FI_ETRUNC, discarding the rest of the message.<br>
<br>
Therefore I wanted to ask, if there is there any way to:<br>
1) Wait for CQ when the message arrives<br>
2) Peek the first few bytes (header)<br>
3) Then read the entire buffer<br>
<br>
Best,<br>
Ioannis<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</body>
</html>