edit server to read lines until EOF
edit cmd parser socket