Lines Matching refs:cmd
278 char *cmd = NULL; in parse_servercmd() local
291 cmd = orgcmd; in parse_servercmd()
292 while(cmd && cmdsize) { in parse_servercmd()
295 if(!strncmp(CMD_AUTH_REQUIRED, cmd, strlen(CMD_AUTH_REQUIRED))) { in parse_servercmd()
299 else if(!strncmp(CMD_IDLE, cmd, strlen(CMD_IDLE))) { in parse_servercmd()
304 else if(!strncmp(CMD_STREAM, cmd, strlen(CMD_STREAM))) { in parse_servercmd()
308 else if(!strncmp(CMD_CONNECTIONMONITOR, cmd, in parse_servercmd()
313 else if(!strncmp(CMD_UPGRADE, cmd, strlen(CMD_UPGRADE))) { in parse_servercmd()
317 else if(!strncmp(CMD_SWSCLOSE, cmd, strlen(CMD_SWSCLOSE))) { in parse_servercmd()
321 else if(1 == sscanf(cmd, "skip: %d", &num)) { in parse_servercmd()
325 else if(!strncmp(CMD_NOEXPECT, cmd, strlen(CMD_NOEXPECT))) { in parse_servercmd()
329 else if(1 == sscanf(cmd, "delay: %d", &num)) { in parse_servercmd()
333 else if(1 == sscanf(cmd, "writedelay: %d", &num)) { in parse_servercmd()
338 logmsg("Unknown <servercmd> instruction found: %s", cmd); in parse_servercmd()
341 check = strchr(cmd, '\r'); in parse_servercmd()
343 check = strchr(cmd, '\n'); in parse_servercmd()
353 cmd = check; in parse_servercmd()
1014 char *cmd = NULL; in send_doc() local
1129 error = getpart(&cmd, &cmdsize, "reply", "postcmd", stream); in send_doc()
1141 free(cmd); in send_doc()
1165 free(cmd); in send_doc()
1221 free(cmd); in send_doc()
1232 free(cmd); in send_doc()
1244 ptr = cmd; in send_doc()
1274 free(cmd); in send_doc()