I have a strange error in my application. After many recv calls, the next call receives less bytes than sent by the client. For example, the client sends 70 bytes and the server receives 40 bytes. It is important to notice that, after the first call to recv is made, perror prints "Illegal Seek". But even with this error, the server receive all the bytes sent by the client in the first calls. We print perror before the recv and, before the first call, perror prints "Sucess" (probaly to a select call).
Thanks any insight!