From aa14c053bc909c56d31c12799f13013f845ddb71 Mon Sep 17 00:00:00 2001 From: Hao Zhou Date: Sat, 13 Dec 2014 13:21:52 +0800 Subject: cython: Add receive/receive_timeout methods for iDeviceConnection to receive data from a connection --- cython/imobiledevice.pxd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cython/imobiledevice.pxd') diff --git a/cython/imobiledevice.pxd b/cython/imobiledevice.pxd index 684368b..8523c94 100644 --- a/cython/imobiledevice.pxd +++ b/cython/imobiledevice.pxd @@ -38,6 +38,8 @@ cdef class iDeviceEvent: cdef class iDeviceConnection(Base): cdef idevice_connection_t _c_connection + cpdef bytes receive_timeout(self, uint32_t max_len, unsigned int timeout) + cpdef bytes receive(self, max_len) cpdef disconnect(self) cdef class iDevice(Base): -- cgit v1.1-32-gdbae