Socket_getPeerAddress

Function Socket_getPeerAddress 

Source
pub unsafe extern "C" fn Socket_getPeerAddress(
    self_: Socket,
) -> *mut c_char
Expand description

Get the address of the peer application (IP address and port number)

The peer address has to be returned as null terminated string

Implementation of this function is MANDATORY (libiec61850)

§Arguments

  • self - the client, connection or server socket instance

§Returns

the IP address and port number as strings separated by the ‘:’ character.