Lines Matching defs:ts
143 transfer_state ts;
3542 // read_msg may be called any time when the transfer state (req->ts) is t_morecoming.
3546 if (req->ts == t_terminated || req->ts == t_error)
3547 { LogMsg("%3d: ERROR: read_msg called with transfer state terminated or error", req->sd); req->ts = t_error; return; }
3549 if (req->ts == t_complete) // this must be death or something is wrong
3553 if (!nread) { req->ts = t_terminated; return; }
3556 req->ts = t_error;
3560 if (req->ts != t_morecoming)
3561 { LogMsg("%3d: ERROR: read_msg called with invalid transfer state (%d)", req->sd, req->ts); req->ts = t_error; return; }
3567 if (nread == 0) { req->ts = t_terminated; return; }
3571 { LogMsg("%3d: ERROR: read_msg - read too many header bytes", req->sd); req->ts = t_error; return; }
3578 { LogMsg("%3d: ERROR: client version 0x%08X daemon version 0x%08X", req->sd, req->hdr.version, VERSION); req->ts = t_error; return; }
3584 { LogMsg("%3d: ERROR: read_msg: hdr.datalen %u (0x%X) > 70000", req->sd, req->hdr.datalen, req->hdr.datalen); req->ts = t_error; return; }
3586 if (!req->msgbuf) { my_perror("ERROR: malloc"); req->ts = t_error; return; }
3617 if (nread == 0) { req->ts = t_terminated; return; }
3621 { LogMsg("%3d: ERROR: read_msg - read too many data bytes", req->sd); req->ts = t_error; return; }
3653 req->ts = t_error;
3687 { LogMsg("%3d: read_msg: ERROR failed to get errsd via SCM_RIGHTS", req->sd); req->ts = t_error; return; }
3693 if (!dnssd_SocketValid(req->errsd)) { my_perror("ERROR: socket"); req->ts = t_error; return; }
3706 req->ts = t_error;
3722 req->ts = t_error;
3727 req->ts = t_complete;
3735 req->ts = t_error;
3755 if (req->ts == t_morecoming) return;
3756 if (req->ts == t_terminated || req->ts == t_error) { AbortUnlinkAndFree(req); return; }
3757 if (req->ts != t_complete) { LogMsg("req->ts %d != t_complete", req->ts); AbortUnlinkAndFree(req); return; }
3868 req->ts = t_morecoming;
3914 request->ts = t_morecoming;
4650 return(req->ts = t_terminated);