Lines Matching defs:frame_len
309 SERIALIZE_SCALAR(frame_len);
319 UNSERIALIZE_SCALAR(frame_len);
330 frame_len = 0;
368 if (frame_len == 0)
369 frame_len = ntohl(*(uint32_t *)buffer);
372 "frame_len=%d\n", len, buffer_used, frame_len);
375 while (frame_len != 0 && buffer_used >= frame_len + sizeof(uint32_t)) {
376 sendSimulated(frame_start, frame_len);
379 buffer_used -= frame_len + sizeof(uint32_t);
382 memmove(buffer, frame_start + frame_len, buffer_used);
384 frame_len = 0;
387 frame_len = ntohl(*(uint32_t *)buffer);
394 uint32_t frame_len = htonl(len);
395 ssize_t ret = write(socket, &frame_len, sizeof(frame_len));
396 if (ret != sizeof(frame_len))