<div dir="ltr"><div><br></div><div>Hi All,</div><div>I am new to openssl and I am trying to achieve server client communication using Openssl with BIO interfaces.</div><div> As per my understanding on the man page of BIO_do_accept(BIO *abio), first call to it will set's up accept BIO and Second call to the same is a blocking call and wait for incoming connections. In my server, i am being blocked at first call to BIO_do_accept. What all scenarios will make my call a blocking call?. Thanks for your help.</div><div><br></div><div>a part of my Openssl server:</div><div><br></div><div><span style="background-color:rgb(255,255,0)">if(BIO_do_accept(server) <= 0)  /* place the underlying socket into listening mode */</span></div><div><span style="background-color:rgb(255,255,0)">{</span></div><div><span style="background-color:rgb(255,255,0)">  cout<<" Error setting up accept\n"<<std::endl;</span></div><div><span style="background-color:rgb(255,255,0)">}</span></div><div><span style="background-color:rgb(255,255,0)">while(1)</span></div><div><span style="background-color:rgb(255,255,0)">{   </span></div><div><span style="background-color:rgb(255,255,0)">  if(BIO_do_accept(server) <= 0)  /* wait for a new connec;tion */</span></div><div><span style="background-color:rgb(255,255,0)">  {</span></div><div><span style="background-color:rgb(255,255,0)">    cout<<" Error in accepting(BIO) the client connections\n"<<std::endl;</span></div><div><span style="background-color:rgb(255,255,0)">  }         </span></div><div><span style="background-color:rgb(255,255,0)">  sclient = BIO_pop(server);/* new_bio now behaves like a BIO_s_socket(  ) BIO */</span></div><div><span style="background-color:rgb(255,255,0)">}</span></div><div><span style="background-color:rgb(255,255,0)"><br></span></div><div><span style="background-color:rgb(255,255,0)">Please let me know if i miss something to give. Complete SSL Server code is attached with the mail.</span></div><div><span style="background-color:rgb(255,255,0)"><br></span></div><div><span style="background-color:rgb(255,255,0)"><br></span></div></div>