Lines Matching defs: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)
43 ev = select.kevent(fd, select.KQ_FILTER_WRITE)
45 self.assertEqual(ev.filter, select.KQ_FILTER_WRITE)
46 self.assertEqual(ev.flags, select.KQ_EV_ADD)
53 ev = select.kevent(fd, select.KQ_FILTER_WRITE, select.KQ_EV_ONESHOT)
55 self.assertEqual(ev.filter, select.KQ_FILTER_WRITE)
56 self.assertEqual(ev.flags, select.KQ_EV_ONESHOT)
63 ev = select.kevent(1, 2, 3, 4, 5, 6)
74 ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum)
99 kq = select.kqueue()
100 kq2 = select.kqueue.fromfd(kq.fileno())
102 ev = select.kevent(server.fileno(),
103 select.KQ_FILTER_WRITE,
104 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
106 ev = select.kevent(server.fileno(),
107 select.KQ_FILTER_READ,
108 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
110 ev = select.kevent(client.fileno(),
111 select.KQ_FILTER_WRITE,
112 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
114 ev = select.kevent(client.fileno(),
115 select.KQ_FILTER_READ,
116 select.KQ_EV_ADD | select.KQ_EV_ENABLE)
122 (client.fileno(), select.KQ_FILTER_WRITE),
123 (server.fileno(), select.KQ_FILTER_WRITE)]))
139 (client.fileno(), select.KQ_FILTER_WRITE),
140 (client.fileno(), select.KQ_FILTER_READ),
141 (server.fileno(), select.KQ_FILTER_WRITE),
142 (server.fileno(), select.KQ_FILTER_READ)]))
145 ev = select.kevent(client.fileno(),
146 select.KQ_FILTER_WRITE,
147 select.KQ_EV_DELETE)
149 ev = select.kevent(client.fileno(),
150 select.KQ_FILTER_READ,
151 select.KQ_EV_DELETE)
153 ev = select.kevent(server.fileno(),
154 select.KQ_FILTER_READ,
155 select.KQ_EV_DELETE)
161 (server.fileno(), select.KQ_FILTER_WRITE)]))
168 kq = select.kqueue()
172 event1 = select.kevent(a, select.KQ_FILTER_READ, select.KQ_EV_ADD | select.KQ_EV_ENABLE)
173 event2 = select.kevent(b, select.KQ_FILTER_READ, select.KQ_EV_ADD | select.KQ_EV_ENABLE)
176 self.assertFalse(r[0].flags & select.KQ_EV_ERROR)