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
This commit is contained in:
2019-06-14 13:10:32 +00:00
parent 5342b716b1
commit aa430d0f83
2 changed files with 18 additions and 0 deletions

View File

@@ -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 ////
//////////////////////////////////

View File

@@ -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
*/