Lines Matching refs:topiclen
419 char **topic, size_t *topiclen) in mqtt_get_topic() argument
424 result = Curl_urldecode(path + 1, 0, topic, topiclen, REJECT_NADA); in mqtt_get_topic()
425 if(!result && (*topiclen > 0xffff)) { in mqtt_get_topic()
440 size_t topiclen; in mqtt_subscribe() local
447 result = mqtt_get_topic(data, &topic, &topiclen); in mqtt_subscribe()
453 packetlen = topiclen + 5; /* packetid + topic (has a two byte length field) in mqtt_subscribe()
468 packet[3 + n] = (topiclen >> 8) & 0xff; in mqtt_subscribe()
469 packet[4 + n ] = topiclen & 0xff; in mqtt_subscribe()
470 memcpy(&packet[5 + n], topic, topiclen); in mqtt_subscribe()
471 packet[5 + n + topiclen] = 0; /* QoS zero */ in mqtt_subscribe()
519 size_t topiclen; in mqtt_publish() local
536 result = mqtt_get_topic(data, &topic, &topiclen); in mqtt_publish()
540 remaininglength = payloadlen + 2 + topiclen; in mqtt_publish()
554 pkt[i++] = (topiclen >> 8) & 0xff; in mqtt_publish()
555 pkt[i++] = (topiclen & 0xff); in mqtt_publish()
556 memcpy(&pkt[i], topic, topiclen); in mqtt_publish()
557 i += topiclen; in mqtt_publish()