Ho risolto nel server così:
codice:while( (len>nread) && ((returnRead=read(socketAccept,&(buffer[nread]),len-nread ))>0) ) { nread+=returnRead; if(buffer[nread-1] == '\0') break; /* fine stringa */ }![]()
Ho risolto nel server così:
codice:while( (len>nread) && ((returnRead=read(socketAccept,&(buffer[nread]),len-nread ))>0) ) { nread+=returnRead; if(buffer[nread-1] == '\0') break; /* fine stringa */ }![]()
"There is no dark side of the moon really. Matter of fact it’s all dark."