how to force read command recieve data until it see \n\r ?
The command:
fgets( <descriptor>, <max_length> ) will read to the end of a line (a \r\n or \n) or max_length, whichever comes first.
Hope that helps! Chris King