Lines Matching refs:peer
66 BIO *peer; /* NULL if buf == NULL.
67 * If peer != NULL, then peer->ptr is also a bio_bio_st,
68 * and its "peer" member points back to us.
69 * peer != NULL iff init != 0 in the BIO. */
71 /* This is for what we write (i.e. reading uses peer's struct): */
72 int closed; /* valid iff peer != NULL */
73 size_t len; /* valid iff buf != NULL; 0 if peer == NULL */
78 size_t request; /* valid iff peer != NULL; 0 if len != 0,
79 * otherwise set by peer to number of bytes
107 peer_bio = b->peer;
115 assert(peer_b->peer == bio);
117 peer_b->peer = NULL;
123 b->peer = NULL;
140 if (b->peer) {
163 assert(b->peer != NULL);
164 peer_b = b->peer->ptr;
182 /* don't ask for more than the peer can
246 assert(b->peer != NULL);
315 if (b1->peer != NULL || b2->peer != NULL) {
346 b1->peer = bio2;
349 b2->peer = bio1;
375 if (b->peer == NULL || b->closed) {
383 /* If the peer unsuccessfully tried to read, how many bytes
416 if (b->peer != NULL) {
417 struct bio_bio_st *peer_b = b->peer->ptr;