A simple line server implementation