comparison channel.h @ 7:425ed5c20157

Chantype handling is sorted
author Matt Johnston <matt@ucc.asn.au>
date Wed, 02 Jun 2004 04:59:49 +0000
parents fe6bca95afa7
children 7f77962de998
comparison
equal deleted inserted replaced
6:ab00ef513e97 7:425ed5c20157
79 int recveof, senteof; 79 int recveof, senteof;
80 80
81 int initconn; /* used for TCP forwarding, whether the channel has been 81 int initconn; /* used for TCP forwarding, whether the channel has been
82 fully initialised */ 82 fully initialised */
83 83
84 struct ChanType* type; 84 const struct ChanType* type;
85 85
86 }; 86 };
87 87
88 struct ChanType { 88 struct ChanType {
89 89
98 98
99 void chaninitialise(); 99 void chaninitialise();
100 void chancleanup(); 100 void chancleanup();
101 void setchannelfds(fd_set *readfd, fd_set *writefd); 101 void setchannelfds(fd_set *readfd, fd_set *writefd);
102 void channelio(fd_set *readfd, fd_set *writefd); 102 void channelio(fd_set *readfd, fd_set *writefd);
103 struct Channel* newchannel(unsigned int remotechan, struct ChanType *type, 103 struct Channel* newchannel(unsigned int remotechan,
104 const struct ChanType *type,
104 unsigned int transwindow, unsigned int transmaxpacket); 105 unsigned int transwindow, unsigned int transmaxpacket);
105 106
106 void recv_msg_channel_open(); 107 void recv_msg_channel_open();
107 void recv_msg_channel_request(); 108 void recv_msg_channel_request();
108 void send_msg_channel_failure(struct Channel *channel); 109 void send_msg_channel_failure(struct Channel *channel);