From: wessels <> Date: Fri, 1 Nov 1996 14:43:43 +0000 (+0000) Subject: add vizHack for server connects too X-Git-Tag: SQUID_3_0_PRE1~5548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b9973cb97aa97c5cfffc4c3de5ae30de9222481;p=thirdparty%2Fsquid.git add vizHack for server connects too --- diff --git a/src/ftp.cc b/src/ftp.cc index 09fec1bda5..91a0628702 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.71 1996/10/28 07:44:20 wessels Exp $ + * $Id: ftp.cc,v 1.72 1996/11/01 07:43:43 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -643,6 +643,8 @@ ftpConnectDone(int fd, int status, void *data) (void *) ftpData, 0); if (opt_no_ipcache) ipcacheInvalidate(ftpData->request->host); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&ftpData->connectState.S, 2); } static void diff --git a/src/gopher.cc b/src/gopher.cc index 7867a8ddf1..129bce002d 100644 --- a/src/gopher.cc +++ b/src/gopher.cc @@ -1,5 +1,5 @@ /* - * $Id: gopher.cc,v 1.57 1996/10/28 07:44:21 wessels Exp $ + * $Id: gopher.cc,v 1.58 1996/11/01 07:43:44 wessels Exp $ * * DEBUG: section 10 Gopher * AUTHOR: Harvest Derived @@ -1029,6 +1029,8 @@ gopherConnectDone(int fd, int status, void *data) COMM_SELECT_WRITE, (PF) gopherSendRequest, (void *) gopherState, 0); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&gopherState->connectState.S, 2); } diff --git a/src/http.cc b/src/http.cc index 88fd16e891..700ea72ad5 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,5 +1,5 @@ /* - * $Id: http.cc,v 1.90 1996/10/29 02:39:09 wessels Exp $ + * $Id: http.cc,v 1.91 1996/11/01 07:43:45 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -749,6 +749,8 @@ httpConnectDone(int fd, int status, void *data) httpLifetimeExpire, (void *) httpState, 0); commSetSelect(fd, COMM_SELECT_WRITE, httpSendRequest, (void *) httpState, 0); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&httpState->connectState.S, 2); } } diff --git a/src/ssl.cc b/src/ssl.cc index 455e4ea92a..f25f051032 100644 --- a/src/ssl.cc +++ b/src/ssl.cc @@ -1,6 +1,6 @@ /* - * $Id: ssl.cc,v 1.20 1996/10/11 23:11:18 wessels Exp $ + * $Id: ssl.cc,v 1.21 1996/11/01 07:43:48 wessels Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -384,6 +384,8 @@ sslConnectDone(int fd, int status, void *data) sslProxyConnected(sslState->server.fd, sslState); else sslConnected(sslState->server.fd, sslState); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&sslState->connectState.S, 2); } int diff --git a/src/tunnel.cc b/src/tunnel.cc index 9b7e9ea2fb..93ae1ee9b2 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -1,6 +1,6 @@ /* - * $Id: tunnel.cc,v 1.20 1996/10/11 23:11:18 wessels Exp $ + * $Id: tunnel.cc,v 1.21 1996/11/01 07:43:48 wessels Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -384,6 +384,8 @@ sslConnectDone(int fd, int status, void *data) sslProxyConnected(sslState->server.fd, sslState); else sslConnected(sslState->server.fd, sslState); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&sslState->connectState.S, 2); } int diff --git a/src/wais.cc b/src/wais.cc index bd66b62f15..2bbfb96135 100644 --- a/src/wais.cc +++ b/src/wais.cc @@ -1,6 +1,6 @@ /* - * $Id: wais.cc,v 1.47 1996/10/28 07:44:30 wessels Exp $ + * $Id: wais.cc,v 1.48 1996/11/01 07:43:48 wessels Exp $ * * DEBUG: section 24 WAIS Relay * AUTHOR: Harvest Derived @@ -409,4 +409,6 @@ waisConnectDone(int fd, int status, void *data) COMM_SELECT_WRITE, (PF) waisSendRequest, (void *) waisState, 0); + if (Config.vizHackAddr.sin_port) + vizHackSendPkt(&waisState->connectState.S, 2); }