[BACK]Return to nchan.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/nchan.c between version 1.3 and 1.4

version 1.3, 1999/10/17 16:56:09 version 1.4, 1999/10/25 21:03:17
Line 15 
Line 15 
 static void chan_delele_if_full_closed(Channel *c);  static void chan_delele_if_full_closed(Channel *c);
   
 /*  /*
  * EVENTS: update channel input/ouput states   * EVENTS: update channel input/output states
  *         execute ACTIONS   *         execute ACTIONS
  */   */
 /* events concerning the INPUT from socket for channel (istate) */  /* events concerning the INPUT from socket for channel (istate) */
Line 23 
Line 23 
 chan_rcvd_oclose(Channel *c){  chan_rcvd_oclose(Channel *c){
         switch(c->istate){          switch(c->istate){
         case CHAN_INPUT_WAIT_OCLOSE:          case CHAN_INPUT_WAIT_OCLOSE:
                 debug("channel %d: INPUT_WAIT_CLOSE -> INPUT_CLOSED [rcvd OCLOSE]", c->self);                  debug("channel %d: INPUT_WAIT_OCLOSE -> INPUT_CLOSED [rcvd OCLOSE]", c->self);
                 c->istate=CHAN_INPUT_CLOSED;                  c->istate=CHAN_INPUT_CLOSED;
                 chan_delele_if_full_closed(c);                  chan_delele_if_full_closed(c);
                 break;                  break;
Line 61 
Line 61 
         }          }
         switch(c->istate){          switch(c->istate){
         case CHAN_INPUT_WAIT_DRAIN:          case CHAN_INPUT_WAIT_DRAIN:
                 debug("channel %d: INPUT_WAIT_DRAIN -> INPUT_WAIT_OCLOSE [inbuf empty, send OCLOSE]", c->self);                  debug("channel %d: INPUT_WAIT_DRAIN -> INPUT_WAIT_OCLOSE [inbuf empty, send IEOF]", c->self);
                 chan_send_ieof(c);                  chan_send_ieof(c);
                 c->istate=CHAN_INPUT_WAIT_OCLOSE;                  c->istate=CHAN_INPUT_WAIT_OCLOSE;
                 break;                  break;
Line 167 
Line 167 
                 packet_send();                  packet_send();
                 break;                  break;
         default:          default:
                 debug("internal error: channel %d: cannot send IEOF for istate %d",c->self,c->istate);                  debug("internal error: channel %d: cannot send OCLOSE for ostate %d",c->self,c->istate);
                 break;                  break;
         }          }
 }  }
Line 176 
Line 176 
 chan_shutdown_write(Channel *c){  chan_shutdown_write(Channel *c){
         debug("channel %d: shutdown_write", c->self);          debug("channel %d: shutdown_write", c->self);
         if(shutdown(c->sock, SHUT_WR)<0)          if(shutdown(c->sock, SHUT_WR)<0)
                 error("chan_shutdown_write failed for %d/%d %.100s",                  error("chan_shutdown_write failed for #%d/fd%d: %.100s",
                         c->self, c->sock, strerror(errno));                          c->self, c->sock, strerror(errno));
 }  }
 static void  static void
 chan_shutdown_read(Channel *c){  chan_shutdown_read(Channel *c){
         debug("channel %d: shutdown_read", c->self);          debug("channel %d: shutdown_read", c->self);
         if(shutdown(c->sock, SHUT_RD)<0)          if(shutdown(c->sock, SHUT_RD)<0)
                 error("chan_shutdown_read failed for %d/%d %.100s",                  error("chan_shutdown_read failed for #%d/fd%d: %.100s",
                         c->self, c->sock, strerror(errno));                          c->self, c->sock, strerror(errno));
 }  }
 static void  static void

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4