Lines Matching refs:topiclen
396 size_t topiclen = strlen(topic);
399 ssize_t remaininglength = topiclen + 2 + payloadlen;
429 packet[1 + encodedlen] = (unsigned char)(topiclen >> 8);
430 packet[2 + encodedlen] = (unsigned char)(topiclen & 0xff);
431 memcpy(&packet[3 + encodedlen], topic, topiclen);
433 payloadindex = 3 + topiclen + encodedlen;
675 size_t topiclen;
681 topiclen = (size_t)(buffer[1 + bytes] << 8) | buffer[2 + bytes];
682 logmsg("Got %zu bytes topic", topiclen);
683 /* TODO: verify topiclen */