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
Post a Comment