parse messages on '\n' character, process as many messages as recv. should account for more than one message being received at once, as well as incomplete messages