Lines Matching refs:result

265   CURLcode result;
274 write_ctx, &result);
276 return result;
294 CURLcode result;
305 result = ws_dec_read_head(dec, data, inraw);
306 if(result) {
307 if(result != CURLE_AGAIN) {
308 infof(data, "WS: decode error %d", (int)result);
322 0, 0, write_ctx, &result);
324 return result;
330 result = ws_dec_pass_payload(dec, data, inraw, write_payload, write_ctx);
332 if(result)
333 return result;
339 result = CURLE_FAILED_INIT;
341 return result;
428 CURLcode result;
442 nbytes, &result);
444 infof(data, "WS: error adding data to buffer %d", result);
445 return result;
455 result = ws_dec_pass(&ws->dec, data, &ctx->buf,
457 if(result == CURLE_AGAIN)
461 else if(result) {
462 infof(data, "WS: decode error %d", (int)result);
463 return result;
678 CURLcode result = CURLE_OK;
713 result = Curl_rand(data, (unsigned char *)rand, sizeof(rand));
714 if(result)
715 return result;
716 result = Curl_base64_encode((char *)rand, sizeof(rand), &randstr, &randlen);
717 if(result)
718 return result;
724 for(i = 0; !result && (i < sizeof(heads)/sizeof(heads[0])); i++) {
730 result = Curl_hyper_header(data, req, field);
733 result = Curl_dyn_addf(req, "%s %s\r\n", heads[i].name,
739 return result;
752 CURLcode result;
794 result = Curl_rand(data, (unsigned char *)&ws->enc.mask,
796 if(result)
797 return result;
802 result = Curl_cwriter_create(&ws_dec_writer, data, &ws_cw_decode,
804 if(result)
805 return result;
807 result = Curl_cwriter_add(data, ws_dec_writer);
808 if(result) {
810 return result;
819 nread, &result);
821 return result;
827 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)mem, nread);
832 return result;
916 CURLcode result;
940 result = Curl_preconnect(data);
941 if(result)
942 return result;
952 ssize_t n = Curl_bufq_slurp(&ws->recvbuf, nw_in_recv, data, &result);
954 return result;
965 result = ws_dec_pass(&ws->dec, data, &ws->recvbuf,
967 if(result == CURLE_AGAIN) {
975 else if(result) {
976 return result;
1002 CURLcode result;
1009 result = Curl_senddata(data, out, outlen, &n);
1011 result = Curl_write(data, data->conn->writesockfd, out, outlen, &n);
1012 if(result) {
1013 if(result == CURLE_AGAIN) {
1017 return result;
1024 else if(result) {
1025 failf(data, "WS: flush, write error %d", result);
1026 return result;
1046 CURLcode result;
1050 result = Curl_connect_only_attach(data);
1051 if(result)
1052 return result;
1076 result = Curl_write(data, data->conn->writesockfd, buffer, buflen,
1080 result = Curl_senddata(data, buffer, buflen, &nwritten);
1085 return result;
1089 result = ws_flush(data, ws, FALSE);
1090 if(result)
1091 return result;
1105 &ws->sendbuf, &result);
1107 return result;
1119 &ws->sendbuf, &result);
1121 return result;
1125 buffer, buflen, &ws->sendbuf, &result);
1127 return result;