summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/channels.h b/channels.h
index 45b783fb3..5e030a44b 100644
--- a/channels.h
+++ b/channels.h
@@ -32,7 +32,7 @@
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */ 34 */
35/* RCSID("$OpenBSD: channels.h,v 1.24 2000/12/05 20:34:10 markus Exp $"); */ 35/* RCSID("$OpenBSD: channels.h,v 1.25 2001/01/29 16:55:36 markus Exp $"); */
36 36
37#ifndef CHANNELS_H 37#ifndef CHANNELS_H
38#define CHANNELS_H 38#define CHANNELS_H
@@ -163,8 +163,12 @@ int channel_allocate(int type, int sock, char *remote_name);
163/* Free the channel and close its socket. */ 163/* Free the channel and close its socket. */
164void channel_free(int channel); 164void channel_free(int channel);
165 165
166/* Add any bits relevant to channels in select bitmasks. */ 166/*
167void channel_prepare_select(fd_set * readset, fd_set * writeset); 167 * Allocate/update select bitmasks and add any bits relevant to channels in
168 * select bitmasks.
169 */
170void
171channel_prepare_select(fd_set **readsetp, fd_set **writesetp, int *maxfdp);
168 172
169/* 173/*
170 * After select, perform any appropriate operations for channels which have 174 * After select, perform any appropriate operations for channels which have
@@ -188,9 +192,6 @@ void channel_stop_listening(void);
188 */ 192 */
189void channel_close_all(void); 193void channel_close_all(void);
190 194
191/* Returns the maximum file descriptor number used by the channels. */
192int channel_max_fd(void);
193
194/* Returns true if there is still an open channel over the connection. */ 195/* Returns true if there is still an open channel over the connection. */
195int channel_still_open(void); 196int channel_still_open(void);
196 197