bp_getfile
if (bp_getfile(sock, "gateway", &gateip, buf) == 0) {
if (bp_getfile(sock, "root", &rootip, rootpath)) {
int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);