thread-safe Gearman client

Once you put all the bytes from multiple data/warnings into a single buffer, how are you going to separate them out into different messages again? Any sort of delimiter could hypothetically appear in the messages themselves.