Lines Matching refs:select
7 import select
12 if not hasattr(select, "kqueue"):
17 kq = select.kqueue()
26 ev = select.kevent(fd)
27 other = select.kevent(1000)
29 self.assertEqual(ev.filter, select.KQ_FILTER_READ)
30 self.assertEqual(ev.flags, select.KQ_EV_ADD)
46 ev = select.kevent(fd, select.KQ_FILTER_WRITE)
48 self.assertEqual(ev.filter, select.KQ_FILTER_WRITE)
49 self.assertEqual(ev.flags, select.KQ_EV_ADD)
56 ev = select.kevent(fd, select.KQ_FILTER_WRITE, select.KQ_EV_ONESHOT)
58 self.assertEqual(ev.filter, select.KQ_FILTER_WRITE)
59 self.assertEqual(ev.flags, select.KQ_EV_ONESHOT)
66 ev = select.kevent(1, 2, 3, 4, 5, 6)
77 ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum)
89 ev = select.kevent(0, 1, bignum)
101 ev = select.kevent(0, 1, 2, bignum)
127 kq = select.kqueue()
128 kq2 = select.kqueue.fromfd(kq.fileno())
130 ev = select.kevent(server.fileno(),
131 select.KQ_FILTER_WRITE,
132 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
134 ev = select.kevent(server.fileno(),
135 select.KQ_FILTER_READ,
136 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
138 ev = select.kevent(client.fileno(),
139 select.KQ_FILTER_WRITE,
140 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
142 ev = select.kevent(client.fileno(),
143 select.KQ_FILTER_READ,
144 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
150 (client.fileno(), select.KQ_FILTER_WRITE),
151 (server.fileno(), select.KQ_FILTER_WRITE)]))
167 (client.fileno(), select.KQ_FILTER_WRITE),
168 (client.fileno(), select.KQ_FILTER_READ),
169 (server.fileno(), select.KQ_FILTER_WRITE),
170 (server.fileno(), select.KQ_FILTER_READ)]))
173 ev = select.kevent(client.fileno(),
174 select.KQ_FILTER_WRITE,
175 select.KQ_EV_DELETE)
177 ev = select.kevent(client.fileno(),
178 select.KQ_FILTER_READ,
179 select.KQ_EV_DELETE)
181 ev = select.kevent(server.fileno(),
182 select.KQ_FILTER_READ,
183 select.KQ_EV_DELETE)
189 (server.fileno(), select.KQ_FILTER_WRITE)]))
196 kq = select.kqueue()
200 event1 = select.kevent(a, select.KQ_FILTER_READ, select.KQ_EV_ADD | select.KQ_EV_ENABLE)
201 event2 = select.kevent(b, select.KQ_FILTER_READ, select.KQ_EV_ADD | select.KQ_EV_ENABLE)
204 self.assertFalse(r[0].flags & select.KQ_EV_ERROR)
213 kq = select.kqueue()
215 ev = select.kevent(a, select.KQ_FILTER_READ, select.KQ_EV_ADD | select.KQ_EV_ENABLE)