TLSConnection_getPeerAddress

Function TLSConnection_getPeerAddress 

Source
pub unsafe extern "C" fn TLSConnection_getPeerAddress(
    self_: TLSConnection,
    peerAddrBuf: *mut c_char,
) -> *mut c_char
Expand description

Get the peer address of the TLS connection

§Arguments

  • self - the TLS connection instance
  • peerAddrBuf - user provided buffer that can hold at least 60 characters, or NULL to allow the function to allocate the memory for the buffer

§Returns

peer address:port as null terminated string