<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">        </span> {</div><div>    <span style="white-space:pre">      </span>        <span style="white-space:pre"> </span>flags = fcntl(wfd, F_GETFL);</div><div>    <span style="white-space:pre">    </span>        <span style="white-space:pre"> </span>flags &= ~O_NONBLOCK;</div><div>    <span style="white-space:pre">       </span>        <span style="white-space:pre"> </span>fcntl(a_wfd, F_SETFL, flags);</div><div><br></div><div>    <span style="white-space:pre">  </span>            FD_SET(wfd, &write_fds);</div><div>    <span style="white-space:pre">  </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>