"Fossies" - the Fresh Open Source Software Archive 
Member "portfwd-0.29/src/forward.h" (30 May 2005, 779 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 forward.h
3
4 $Id: forward.h,v 1.5 2005/05/30 02:13:28 evertonm Exp $
5 */
6
7 #ifndef FORWARD_H
8 #define FORWARD_H
9
10 #include "solve.h"
11 #include "host_map.hpp"
12 #include "portfwd.h"
13 #include "fd_set.h"
14
15 extern int grandchild_pid[PORTFWD_MAX_FD];
16
17 int buf_copy(int src_fd, int trg_fd, int pasv);
18 int tcp_listen(const struct ip_addr *ip, int *port, int queue);
19
20 void tcp_forward(const struct ip_addr *listen, const struct ip_addr *source, vector<int> *port_list, vector<host_map*> *map_list, const struct ip_addr *actv_ip, const struct ip_addr *pasv_ip, int uid, int gid, int fragile);
21 void udp_forward(const struct ip_addr *listen, const struct ip_addr *source, vector<int> *port_list, vector<host_map*> *map_list, int uid, int gid);
22
23 #endif /* FORWARD_H */
24
25 /* Eof: forward.h */
26
27