Lines Matching defs:descriptor
165 struct Descriptor { PRInt32 length; PRUint32 checksum; } descriptor;
173 descriptor.checksum = 0;
176 PRUint32 overflow = descriptor.checksum & 0x80000000;
177 descriptor.checksum = (descriptor.checksum << 1);
178 if (0x00000000 != overflow) descriptor.checksum += 1;
179 descriptor.checksum += buffer[bytes];
181 descriptor.checksum = PR_htonl(descriptor.checksum);
210 descriptor.length = PR_htonl(descriptor_length);
216 clientSock, &descriptor, sizeof(descriptor),
218 if (bytes != sizeof(descriptor))