Andando ad intuito, non vedo errori... potresti postare il client ?

Hai provato a stampare il contenuto del buffer subito dopo la recv() ?