get_extra_info(name, default=None)
Return optional transport information. name is a string representing the piece of transport-specific information to get, default is the value to return if the information doesn’t exist.
This method allows transport implementations to easily expose channel-specific information.
- socket:
-
'peername': the remote address to which the socket is connected, result ofsocket.socket.getpeername()(Noneon error) -
'socket':socket.socketinstance -
'sockname': the socket’s own address, result ofsocket.socket.getsockname()
-
- SSL socket:
-
'compression': the compression algorithm being used as a string, orNoneif the connection isn’t compressed; result ofssl.SSLSocket.compression() -
'cipher': a three-value tuple containing the name of the cipher being used, the version of the SSL protocol that defines its use, and the number of secret bits being used; result ofssl.SSLSocket.cipher() -
'peercert': peer certificate; result ofssl.SSLSocket.getpeercert() -
'sslcontext':ssl.SSLContextinstance -
'ssl_object':ssl.SSLObjectorssl.SSLSocketinstance
-
- pipe:
-
'pipe': pipe object
-
- subprocess:
-
'subprocess':subprocess.Popeninstance
-
Please login to continue.