version 1.1, 1999/10/16 20:47:14 |
version 1.2, 1999/10/16 22:29:01 |
|
|
#include "includes.h" |
#include "includes.h" |
|
RCSID("$Id$"); |
|
|
#include "ssh.h" |
#include "ssh.h" |
|
|
#include "buffer.h" |
#include "buffer.h" |
|
|
#include "packet.h" |
#include "packet.h" |
#include "nchan.h" |
#include "nchan.h" |
|
|
|
|
void |
void |
dump_chan(Channel *c){ |
dump_chan(Channel *c){ |
debug("chan %d type %d flags 0x%x", c->self, c->type, c->flags); |
debug("chan %d type %d flags 0x%x", c->self, c->type, c->flags); |
|
|
void |
void |
chan_send_ieof(Channel *c){ |
chan_send_ieof(Channel *c){ |
if(c->flags & CHAN_IEOF_SENT){ |
if(c->flags & CHAN_IEOF_SENT){ |
debug("send_chan_ieof twice %d", c->self); |
/* this is ok: it takes some time before we get OCLOSE */ |
|
/* debug("send_chan_ieof twice %d", c->self); */ |
return; |
return; |
} |
} |
debug("send_CHAN_IEOF %d", c->self); |
debug("send_CHAN_IEOF %d", c->self); |
|
|
c->flags |= CHAN_SHUT_WR; |
c->flags |= CHAN_SHUT_WR; |
/* clear output buffer, since there is noone going to read the data |
/* clear output buffer, since there is noone going to read the data |
we just closed the output-socket */ |
we just closed the output-socket */ |
// buffer_consume(&c->output, buffer_len(&c->output)); |
/* buffer_consume(&c->output, buffer_len(&c->output)); */ |
} |
} |
void |
void |
chan_shutdown_read(Channel *c){ |
chan_shutdown_read(Channel *c){ |
if(c->flags & CHAN_SHUT_RD){ |
if(c->flags & CHAN_SHUT_RD){ |
debug("chan_shutdown_read twice %d",c->self); |
/* chan_shutdown_read is called for read-errors and OCLOSE */ |
|
/* debug("chan_shutdown_read twice %d",c->self); */ |
return; |
return; |
} |
} |
debug("chan_shutdown_read %d", c->self); |
debug("chan_shutdown_read %d", c->self); |