youeyg96: Thank you for catching that mistake.
Your version of the function recvWithStartEndMarkers() is still wrong.
...R