httpclient : allow to get TCP source/dest IP and ports in getInfo method

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5426 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-08-20 12:46:16 +00:00
parent 98116d9550
commit 45a003930b

View File

@@ -4,6 +4,8 @@
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
*/ */
require_once ("domframework/tcpclient.php");
/** This programe allow to get a HTTP page from a site, and examine the content. /** This programe allow to get a HTTP page from a site, and examine the content.
* It will store the Cookies, allow to do the redirects, follow links and * It will store the Cookies, allow to do the redirects, follow links and
* get form / input and send the values. * get form / input and send the values.
@@ -483,6 +485,13 @@ class Httpclient
} }
// }}} // }}}
/** Return the TCP infos of the connection
*/
public function getInfo ()
{
return $this->tcpclient->getInfo ();
}
////////////////////////////////// //////////////////////////////////
//// THE ACTIVE METHODS //// //// THE ACTIVE METHODS ////
////////////////////////////////// //////////////////////////////////