Lines Matching refs:packet
70 _cleanup_free_ char *packet = NULL;
102 packet = strdup("c");
104 } else if (asprintf(&packet, "*\002%c%s%n", (int) (strlen(message) + 1), message, &n) < 0)
105 packet = NULL;
106 if (!packet)
109 r = loop_write(fd, packet, n + 1, true);
180 packet = mfree(packet);
182 if (asprintf(&packet, "*\002%c%s%n", (int) (strlen(message) + 1), message, &n) < 0) {
187 r = loop_write(fd, packet, n+1, true);
228 /* Unknown packet */
242 _cleanup_free_ char *packet = NULL;
254 packet = new(char, packet_length);
255 if (!packet)
258 packet[0] = '+';
260 d = packet + 1;
272 r = sendto(socket_fd, packet, packet_length, MSG_NOSIGNAL, &sa.sa,
278 memory_erase(packet, packet_length);