Lines Matching refs:buf
268 buf = ctypes.c_int()
269 fcntl.ioctl(sock, SIOCINQ, buf)
270 self.assertEqual(buf.value, 0)
274 fcntl.ioctl(sock, SIOCINQ, buf)
275 self.assertEqual(buf.value, len(TEST_RECV_PAYLOAD))
282 buf = ctypes.c_int()
283 fcntl.ioctl(sock, SIOCOUTQ, buf)
284 self.assertEqual(buf.value, 0)
290 fcntl.ioctl(sock, SIOCOUTQ, buf)
291 self.assertEqual(buf.value, len(TEST_SEND_PAYLOAD))
299 fcntl.ioctl(sock, SIOCOUTQ, buf)
300 self.assertEqual(buf.value, len(TEST_SEND_PAYLOAD))
306 fcntl.ioctl(sock, SIOCOUTQ, buf)
307 self.assertEqual(buf.value, 0)