Lines Matching defs:ts
143 transfer_state ts;
3548 // read_msg may be called any time when the transfer state (req->ts) is t_morecoming.
3552 if (req->ts == t_terminated || req->ts == t_error)
3553 { LogMsg("%3d: ERROR: read_msg called with transfer state terminated or error", req->sd); req->ts = t_error; return; }
3555 if (req->ts == t_complete) // this must be death or something is wrong
3559 if (!nread) { req->ts = t_terminated; return; }
3562 req->ts = t_error;
3566 if (req->ts != t_morecoming)
3567 { LogMsg("%3d: ERROR: read_msg called with invalid transfer state (%d)", req->sd, req->ts); req->ts = t_error; return; }
3573 if (nread == 0) { req->ts = t_terminated; return; }
3577 { LogMsg("%3d: ERROR: read_msg - read too many header bytes", req->sd); req->ts = t_error; return; }
3584 { LogMsg("%3d: ERROR: client version 0x%08X daemon version 0x%08X", req->sd, req->hdr.version, VERSION); req->ts = t_error; return; }
3590 { LogMsg("%3d: ERROR: read_msg: hdr.datalen %u (0x%X) > 70000", req->sd, req->hdr.datalen, req->hdr.datalen); req->ts = t_error; return; }
3592 if (!req->msgbuf) { my_perror("ERROR: malloc"); req->ts = t_error; return; }
3623 if (nread == 0) { req->ts = t_terminated; return; }
3627 { LogMsg("%3d: ERROR: read_msg - read too many data bytes", req->sd); req->ts = t_error; return; }
3659 req->ts = t_error;
3693 { LogMsg("%3d: read_msg: ERROR failed to get errsd via SCM_RIGHTS", req->sd); req->ts = t_error; return; }
3699 if (!dnssd_SocketValid(req->errsd)) { my_perror("ERROR: socket"); req->ts = t_error; return; }
3712 req->ts = t_error;
3728 req->ts = t_error;
3733 req->ts = t_complete;
3741 req->ts = t_error;
3761 if (req->ts == t_morecoming) return;
3762 if (req->ts == t_terminated || req->ts == t_error) { AbortUnlinkAndFree(req); return; }
3763 if (req->ts != t_complete) { LogMsg("req->ts %d != t_complete", req->ts); AbortUnlinkAndFree(req); return; }
3874 req->ts = t_morecoming;
3920 request->ts = t_morecoming;
4656 return(req->ts = t_terminated);