starts_with_file = strncmp(ctrl_url, "file://", strlen("file://")) == 0;
starts_with_net = strncmp(ctrl_url, "net://", strlen("net://")) == 0;
starts_with_file = strncmp(ctrl_url, "file://", strlen("file://")) == 0;
starts_with_net = strncmp(ctrl_url, "net://", strlen("net://")) == 0;