Lines Matching full:pair
83 evutil_socket_t *pair = data->pair; in test_edgetriggered() local
97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered()
106 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered()
111 * will read a single byte from pair[1] in either case. If we're edge in test_edgetriggered()
153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events() local
224 /* Make pair[1] readable */ in test_edge_triggered_multiple_events()
225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events()
227 read_ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
229 write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
246 close(pair[0]); in test_edge_triggered_multiple_events()
247 pair[0] = -1; in test_edge_triggered_multiple_events()