Mercurial > dropbear
comparison tcpfwd.h @ 4:fe6bca95afa7
Makefile.in contains updated files required
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Jun 2004 02:46:09 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 4:fe6bca95afa7 |
---|---|
1 #ifndef _TCPFWD_H | |
2 #define _TCPFWD_H | |
3 | |
4 #define MAX_TCPLISTENERS 20 | |
5 #define TCP_EXTEND_SIZE 1 | |
6 | |
7 struct TCPListener { | |
8 | |
9 int sock; | |
10 | |
11 int index; /* index in the array of listeners */ | |
12 | |
13 void (*accepter)(struct TCPListener*); | |
14 void (*cleanup)(struct TCPListener*); | |
15 | |
16 int type; /* CHANNEL_ID_X11, CHANNEL_ID_AGENT, | |
17 CHANNEL_ID_TCPDIRECT (for clients), | |
18 CHANNEL_ID_TCPFORWARDED (for servers) */ | |
19 | |
20 void *typedata; | |
21 | |
22 }; | |
23 | |
24 void tcp_fwd_initialise(); | |
25 void handle_tcp_fwd(fd_set * readfds); | |
26 void set_tcp_fwd_fds(fd_set * readfds); | |
27 | |
28 int new_fwd(int sock, int type, void* typedata, | |
29 void (*accepter)(struct TCPListener*), | |
30 void (*cleanup)(struct TCPListener*)); | |
31 | |
32 struct TCPListener * get_listener(int type, void* typedata, | |
33 int (*match)(void*, void*)); | |
34 | |
35 void remove_listener(struct TCPListener* listener); | |
36 | |
37 #endif /* _TCPFWD_H */ |