in reply to Choosing a client/server protocol

You might be interested in Eric Raymond's "The Art of Unix Programming". Specifically, Section 5.3 called "Application Protocol Design". It's an easy read and might save lots of pain later.

Just my 2 cents.

Leonid Mamtchenkov aka TVSET