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:
@@ -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 ////
|
||||
//////////////////////////////////
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user