Lines Matching refs:result

130   unsigned int result = 0;
141 * time is set to zero and the result counter is increased. */
148 result++;
162 return result;
779 coap_mid_t result = COAP_INVALID_MID;
785 result = coap_send_internal(session, response);
787 return result;
848 coap_mid_t result = COAP_INVALID_MID;
855 result = coap_send_internal(session, response);
857 return result;
864 coap_mid_t result = COAP_INVALID_MID;
869 result = coap_send_internal(session, response);
871 return result;
889 unsigned int result;
898 * make the result a rounded Qx.FRAC_BITS */
899 result = SHR_FP((ACK_RANDOM_FACTOR - FP1) * r, MAX_BITS);
902 * make the result a rounded Qx.FRAC_BITS */
903 result = SHR_FP(((result + FP1) * ACK_TIMEOUT), FRAC_BITS);
907 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS);
1010 int result = coap_io_process(session->context, 1000);
1012 if (result < 0) {
1018 if (result <= timeout_ms) {
1019 timeout_ms -= result;
1720 int result = -1;
1726 result = coap_dtls_hello(session, data, data_len);
1730 result = coap_dtls_receive(session, data, data_len);
1732 result = coap_handle_dgram(ctx, session, data, data_len);
1734 return result;
1985 int result = -1; /* the value to be returned */
2018 result = coap_handle_dgram_for_proto(ctx, session, packet);
2019 if (endpoint->proto == COAP_PROTO_DTLS && session->type == COAP_SESSION_TYPE_HELLO && result == 1)
2026 return result;
2197 /* Check the result from read() to suppress the warning on
2509 int result = 0;
2520 result = coap_print_wellknown(session->context, data_string->s, &len, 0,
2522 if ((result & COAP_PRINT_STATUS_ERROR) != 0) {
4118 int result = -1;
4139 result = getaddrinfo(group_name, NULL, &hints, &resmulti);
4141 if (result != 0) {
4144 group_name, gai_strerror(result));
4193 result = ioctl(ctx->endpoint->sock.fd, SIOCGIFINDEX, &ifr);
4194 if (result != 0) {
4233 result = ioctl(ip4fd, SIOCGIFADDR, &ifr);
4234 if (result != 0) {
4279 result = setsockopt(endpoint->sock.fd, IPPROTO_IPV6, IPV6_JOIN_GROUP,
4303 result = setsockopt(endpoint->sock.fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,
4311 if (result == COAP_SOCKET_ERROR) {
4332 result = -1;
4338 return result;