<div dir="ltr">Thankyou Hugh,<div>I know that it is datagram and we are not acknowledged. I just was looking for a way if SSL will be aware whether the packet is consumed or not.</div><div>or anyway we can get the status from SSL on the packet consumption.</div><div><br></div><div>Thanks,</div><div>Grace<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 4:13 PM, Hugh Maaskant <span dir="ltr"><<a href="mailto:hugh.maaskant@gmail.com" target="_blank">hugh.maaskant@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Grace,<div><br></div><div>UDP is a datagram service - think of it as “fire and forget”. So the sending socket will not know if or when the packet has been delivered to the receiver, let alone that it has been consumed. You could, of course, create your own application level acks and retries etcetera, but before you know it you are rebuilding TCP.</div><div><br></div><div>See e.g. <a href="https://www.diffen.com/difference/TCP_vs_UDP" target="_blank">https://www.diffen.com/<wbr>difference/TCP_vs_UDP</a> for a comparison between UDP and TCP.</div><div><br></div><div>rgds,</div><div><br></div><div>Hugh<br>
<div><br><blockquote type="cite"><div><div class="h5"><div>On 16 Feb 2018, at 04:35, Grace Priscilla Jero <<a href="mailto:grace.priscilla@gmail.com" target="_blank">grace.priscilla@gmail.com</a>> wrote:</div><br class="m_-6448275879279377763Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi All,<div><br></div><div>I want to know the status of the SSL_WRITE for DTLS on UDP on a non-blocking socket. Only if the other end does the recvfrom I want to continue with subsequent SSL_WRITE.</div><div><br></div><div>Below is what I have tried.</div><div><br></div><div>//Making the socket blocking - if I dont do below then select call hangs</div><div><br></div><div><div>if (wfd = SSL_get_wfd(ssl))</div><div>    <span style="white-space:pre-wrap">    </span> {</div><div>    <span style="white-space:pre-wrap"> </span>        <span style="white-space:pre-wrap">    </span>flags = fcntl(wfd, F_GETFL);</div><div>    <span style="white-space:pre-wrap">       </span>        <span style="white-space:pre-wrap">    </span>flags &= ~O_NONBLOCK;</div><div>    <span style="white-space:pre-wrap">  </span>        <span style="white-space:pre-wrap">    </span>fcntl(a_wfd, F_SETFL, flags);</div><div><br></div><div>    <span style="white-space:pre-wrap">     </span>            FD_SET(wfd, &write_fds);</div><div>    <span style="white-space:pre-wrap">     </span> }</div></div><div><div>len = SSL_write(          ssl,</div><div>                                     buf,</div><div>                                     elen);</div></div><div><br></div><div>i = select(wfd+1, NULL, &write_fds, 0, 0);<br></div><div><br></div><div>The other side has not yet done the SSL_read but i is "1".</div><div>Is their something wrong with this?</div><div><br></div><div>Thanks,</div><div>Grace</div><div><br></div></div></div></div><span class="HOEnZb"><font color="#888888">
-- <br>openssl-users mailing list<br>To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br></font></span></div></blockquote></div><br></div></div><br>--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
<br></blockquote></div><br></div></div></div>