Lines Matching refs:descriptor
94 struct Descriptor { PRInt32 length; PRUint32 checksum; } descriptor;
108 clientSock, &descriptor, sizeof(descriptor),
110 if (sizeof(descriptor) == bytes)
113 descriptor.length = PR_ntohl(descriptor.length);
114 descriptor.checksum = PR_ntohl(descriptor.checksum);
116 PR_fprintf(shared->debug, "%d bytes ... ", descriptor.length);
117 toread = descriptor.length;
118 if (recv_length < descriptor.length)
121 buffer = (char*)PR_MALLOC(descriptor.length);
122 recv_length = descriptor.length;
124 for (toread = descriptor.length; toread > 0; toread -= bytes)
127 clientSock, &buffer[descriptor.length - toread],
140 descriptor.length = -1;
156 if (descriptor.length > 0)
158 for (byte = 0; byte < descriptor.length; ++byte)
165 if ((descriptor.checksum != checksum) && (NULL != shared->debug))
171 else if (0 == descriptor.length)