c++ - OpenSSL non-blocking mode BIO -


i trying create non-blocking bio openssl server, looking @ this stackoverflow question didn't help, trying bio_set_nbio(), no avail (see code snippet below).

can please me , explain why one-line call bio_set_nbio doesn't appear says on tin....

bio *ssl_bio; ssl_ctx *ctx; bio *in = null;  ssl *ssl = ssl_new(ctx); ssl_bio = bio_new_ssl(ctx, 0);  ssl_set_mode(ssl, ssl_mode_auto_retry);  if ((in = bio_new_accept(port)) == null)     goto err;  bio_set_nbio( ssl_bio, 1 ); bio_set_nbio( in, 1 );  bio_set_accept_bios(in, ssl_bio); 


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -