Lines Matching refs:rv
165 int rv;
172 rv = SSL_write(connection->ssl, data, (int)length);
173 if (rv <= 0) {
174 int err = SSL_get_error(connection->ssl, rv);
178 rv = NGHTTP2_ERR_WOULDBLOCK;
180 rv = NGHTTP2_ERR_CALLBACK_FAILURE;
183 return rv;
195 int rv;
202 rv = SSL_read(connection->ssl, buf, (int)length);
203 if (rv < 0) {
204 int err = SSL_get_error(connection->ssl, rv);
208 rv = NGHTTP2_ERR_WOULDBLOCK;
210 rv = NGHTTP2_ERR_CALLBACK_FAILURE;
212 } else if (rv == 0) {
213 rv = NGHTTP2_ERR_EOF;
215 return rv;
292 int rv;
293 rv = nghttp2_session_terminate_session(session, NGHTTP2_NO_ERROR);
295 if (rv != 0) {
296 diec("nghttp2_session_terminate_session", rv);
357 int rv;
363 rv = nghttp2_select_next_protocol(out, outlen, in, inlen);
364 if (rv <= 0) {
390 int rv;
395 rv = SSL_connect(ssl);
396 if (rv <= 0) {
408 int rv;
415 rv = getaddrinfo(host, service, &hints, &res);
416 if (rv != 0) {
417 dief("getaddrinfo", gai_strerror(rv));
424 while ((rv = connect(fd, rp->ai_addr, rp->ai_addrlen)) == -1 &&
427 if (rv == 0) {
438 int flags, rv;
444 while ((rv = fcntl(fd, F_SETFL, flags | O_NONBLOCK)) == -1 && errno == EINTR)
446 if (rv == -1) {
453 int rv;
454 rv = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)sizeof(val));
455 if (rv == -1) {
505 int rv;
506 rv = nghttp2_session_recv(connection->session);
507 if (rv != 0) {
508 diec("nghttp2_session_recv", rv);
510 rv = nghttp2_session_send(connection->session);
511 if (rv != 0) {
512 diec("nghttp2_session_send", rv);
540 int rv;
573 rv = nghttp2_session_callbacks_new(&callbacks);
575 if (rv != 0) {
576 diec("nghttp2_session_callbacks_new", rv);
581 rv = nghttp2_session_client_new(&connection.session, callbacks, &connection);
585 if (rv != 0) {
586 diec("nghttp2_session_client_new", rv);
589 rv = nghttp2_submit_settings(connection.session, NGHTTP2_FLAG_NONE, NULL, 0);
591 if (rv != 0) {
592 diec("nghttp2_submit_settings", rv);
712 int rv;
735 rv = parse_uri(&uri, argv[1]);
736 if (rv != 0) {