From aa430d0f839e471ce2f673eaec37b80e8e254a11 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 14 Jun 2019 13:10:32 +0000 Subject: [PATCH] tcpclient, httpclient : Add TCP Metadata support (get the cyphers and protocols used by example) git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5360 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- httpclient.php | 9 +++++++++ tcpclient.php | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/httpclient.php b/httpclient.php index 3242aeb..b0699ea 100644 --- a/httpclient.php +++ b/httpclient.php @@ -474,6 +474,15 @@ class Httpclient } // }}} + /** Get meta data, like the timeout state, the crypto protocol and ciphers... + */ + public function getMeta () + // {{{ + { + return $this->tcpclient->getMeta (); + } + // }}} + ////////////////////////////////// //// THE ACTIVE METHODS //// ////////////////////////////////// diff --git a/tcpclient.php b/tcpclient.php index 1817e33..f66a80f 100644 --- a/tcpclient.php +++ b/tcpclient.php @@ -279,6 +279,15 @@ class tcpclient } // }}} + /** Get meta data, like the timeout state, the crypto protocol and ciphers... + */ + public function getMeta () + // {{{ + { + return stream_get_meta_data ($this->socket); + } + // }}} + /** Get the connection peer address, peer port and localaddress and localport * @return array */