EthernetV2_0 input function

more of a programming question but it dealt with ethernet so i thought i'd ask here.

In EthernetV2_0 example: DhcpChatServer, there's a function client.read();

but the program seems to just go through the loop and catch a character when it sees it. I'm looking for a function that would stop and buffer the user input like the cin function. any particular functions pop into mind?

The characters from the client are buffered in the w5200 as a packet. When there are characters available, it is usually more than just one.

Do you want to read the characters until a specific character, like a newline?

The SRAM of most Arduinos is very limited, so you can't buffer everything all the time.