def data_received(self, t):
    'asyncio callback when data is read from the socket.'
    if (len(t) > 0):
        self.recvbuf += t
        self._on_data()
asyncio callback when data is read from the socket.
def data_received(self, t):
    
    if (len(t) > 0):
        self.recvbuf += t
        self._on_data()