Lines Matching refs:secret
40 /* The 'secret' field of a PRFileDesc created by memio_CreateIOLayer points
191 struct PRFilePrivate *secret = fd->secret;
192 memio_buffer_destroy(&secret->readbuf);
193 memio_buffer_destroy(&secret->writebuf);
194 free(secret);
212 struct PRFilePrivate *secret;
221 secret = fd->secret;
222 mb = &secret->readbuf;
225 if (rv == 0 && !secret->eof) {
245 struct PRFilePrivate *secret;
249 secret = fd->secret;
250 mb = &secret->writebuf;
274 struct PRFilePrivate *secret = fd->secret;
275 *addr = secret->peername;
356 struct PRFilePrivate *secret;
362 secret = malloc(sizeof(struct PRFilePrivate));
363 memset(secret, 0, sizeof(*secret));
365 memio_buffer_new(&secret->readbuf, bufsize);
366 memio_buffer_new(&secret->writebuf, bufsize);
367 fd->secret = secret;
374 struct PRFilePrivate *secret = memiofd->secret;
375 secret->peername = *peername;
381 struct PRFilePrivate *secret = memiofd->secret;
382 return (memio_Private *)secret;
385 int memio_GetReadParams(memio_Private *secret, char **buf)
387 struct memio_buffer* mb = &((PRFilePrivate *)secret)->readbuf;
394 void memio_PutReadResult(memio_Private *secret, int bytes_read)
396 struct memio_buffer* mb = &((PRFilePrivate *)secret)->readbuf;
405 ((PRFilePrivate *)secret)->eof = PR_TRUE;
411 void memio_GetWriteParams(memio_Private *secret,
415 struct memio_buffer* mb = &((PRFilePrivate *)secret)->writebuf;
424 void memio_PutWriteResult(memio_Private *secret, int bytes_written)
426 struct memio_buffer* mb = &((PRFilePrivate *)secret)->writebuf;