From 3a0a7c65e79deffc9bceec2f946c46d76b80b8bd Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 2 Nov 2008 12:25:08 +0000 Subject: Report errors if a remote request fails --- tcpfwd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tcpfwd.h') diff --git a/tcpfwd.h b/tcpfwd.h index f50515c..251612e 100644 --- a/tcpfwd.h +++ b/tcpfwd.h @@ -49,6 +49,8 @@ struct TCPFwdList { const unsigned char* connectaddr; unsigned int connectport; unsigned int listenport; + unsigned int have_reply; /* is set to 1 after a reply has been received + when setting up the forwarding */ struct TCPFwdList * next; }; @@ -62,6 +64,8 @@ extern const struct ChanType svr_chan_tcpdirect; void setup_localtcp(); void setup_remotetcp(); extern const struct ChanType cli_chan_tcpremote; +void cli_recv_msg_request_success(); +void cli_recv_msg_request_failure(); /* Common */ int listen_tcpfwd(struct TCPListener* tcpinfo); -- cgit v1.2.1