Lines Matching refs:newchan
103 struct Channel * newchan; in newchannel() local
135 newchan = (struct Channel*)m_malloc(sizeof(struct Channel)); in newchannel()
136 newchan->type = type; in newchannel()
137 newchan->index = i; in newchannel()
138 newchan->sent_close = newchan->recv_close = 0; in newchannel()
139 newchan->sent_eof = newchan->recv_eof = 0; in newchannel()
141 newchan->remotechan = remotechan; in newchannel()
142 newchan->transwindow = transwindow; in newchannel()
143 newchan->transmaxpacket = transmaxpacket; in newchannel()
145 newchan->typedata = NULL; in newchannel()
146 newchan->writefd = FD_UNINIT; in newchannel()
147 newchan->readfd = FD_UNINIT; in newchannel()
148 newchan->errfd = FD_CLOSED; /* this isn't always set to start with */ in newchannel()
149 newchan->initconn = 0; in newchannel()
150 newchan->await_open = 0; in newchannel()
151 newchan->flushing = 0; in newchannel()
153 newchan->writebuf = cbuf_new(RECV_MAXWINDOW); in newchannel()
154 newchan->extrabuf = NULL; /* The user code can set it up */ in newchannel()
155 newchan->recvwindow = RECV_MAXWINDOW; in newchannel()
156 newchan->recvdonelen = 0; in newchannel()
157 newchan->recvmaxpacket = RECV_MAXPACKET; in newchannel()
159 ses.channels[i] = newchan; in newchannel()
164 return newchan; in newchannel()