data reception on a tcp socket working