comparison tcpfwd.h @ 505:805e557fdff7

Report errors if a remote request fails
author Matt Johnston <matt@ucc.asn.au>
date Sun, 02 Nov 2008 12:25:08 +0000
parents 52a644e7b8e1
children c3f2ec71e3d4 69e98c45db7c
comparison
equal deleted inserted replaced
504:950c38b854a1 505:805e557fdff7
47 struct TCPFwdList { 47 struct TCPFwdList {
48 48
49 const unsigned char* connectaddr; 49 const unsigned char* connectaddr;
50 unsigned int connectport; 50 unsigned int connectport;
51 unsigned int listenport; 51 unsigned int listenport;
52 unsigned int have_reply; /* is set to 1 after a reply has been received
53 when setting up the forwarding */
52 struct TCPFwdList * next; 54 struct TCPFwdList * next;
53 55
54 }; 56 };
55 57
56 /* Server */ 58 /* Server */
60 62
61 /* Client */ 63 /* Client */
62 void setup_localtcp(); 64 void setup_localtcp();
63 void setup_remotetcp(); 65 void setup_remotetcp();
64 extern const struct ChanType cli_chan_tcpremote; 66 extern const struct ChanType cli_chan_tcpremote;
67 void cli_recv_msg_request_success();
68 void cli_recv_msg_request_failure();
65 69
66 /* Common */ 70 /* Common */
67 int listen_tcpfwd(struct TCPListener* tcpinfo); 71 int listen_tcpfwd(struct TCPListener* tcpinfo);
68 72
69 73