Lines Matching refs:ostate
95 if (c->ostate > CHAN_OUTPUT_CLOSED || next > CHAN_OUTPUT_CLOSED)
96 fatal("chan_set_ostate: bad state %d -> %d", c->ostate, next);
97 debug("channel %d: output %s -> %s", c->self, ostates[c->ostate],
99 c->ostate = next;
175 switch (c->ostate) {
183 error("channel %d: protocol error: rcvd_ieof for ostate %d",
184 c->self, c->ostate);
192 switch (c->ostate) {
204 error("channel %d: chan_write_failed for ostate %d",
205 c->self, c->ostate);
218 switch (c->ostate) {
226 error("channel %d: internal error: obuf_empty for ostate %d",
227 c->self, c->ostate);
252 switch (c->ostate) {
261 error("channel %d: cannot send oclose for ostate %d",
262 c->self, c->ostate);
283 switch (c->ostate) {
308 if (c->ostate == CHAN_OUTPUT_OPEN)
315 switch (c->ostate) {
322 error("channel %d: chan_write_failed for ostate %d",
323 c->self, c->ostate);
348 if (c->ostate != CHAN_OUTPUT_CLOSED ||
350 error("channel %d: cannot send close for istate/ostate %d/%d",
351 c->self, c->istate, c->ostate);
371 if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN &&
406 if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED)
477 c->self, c->sock, c->istate, c->ostate,