'Register a raw buffer receive callback.
Parameters
callback : callable
The callback. The raw buffer is passed as the first parameter
to callback.'

def register_receive_callback(self, callback):

    if (callback not in self._recv_callbacks):
        self._recv_callbacks.append(callback)
