ot::Ip6::Tcp::AutoBind() method
Automatically selects a local address and/or port for communication with the specified peer.
Arguments
aPeer
The peer's address and port.
aToBind
The SockAddr into which to store the selected address and/or port.
aBindAddress
If true, the local address is selected; if not, the current address in @p aToBind is treated as a given.
aBindPort
If true, the local port is selected; if not, the current port in @p aToBind is treated as a given.
Return value
True if successful, false otherwise.