Added the method AddressBookGetContact and minor improvements in other implementations

This commit is contained in:
netkas 2025-01-24 19:12:03 -05:00
parent e2a0e2f27f
commit aba9adf916
4 changed files with 62 additions and 8 deletions

View file

@ -761,10 +761,11 @@
* Resolves an external peer based on the given peer address or string identifier.
*
* @param PeerAddress|string $peerAddress The external peer address or string identifier to be resolved.
* @param PeerAddress|string|null $identifiedAs Optional. The peer address or string identifier by which the caller is identified
* @return Peer The resolved external peer after synchronization.
* @throws StandardException Thrown if there was an error with the resolution process
*/
public static function resolvePeer(PeerAddress|string $peerAddress): Peer
public static function resolvePeer(PeerAddress|string $peerAddress, null|PeerAddress|string $identifiedAs=null): Peer
{
if(is_string($peerAddress))
{
@ -844,6 +845,11 @@
return $registeredPeer;
}
private static function localResolvePeer(PeerAddress|string $peerAddress, null|PeerAddress|string $identifiedAs=null)
{
}
/**
* Retrieves the server information by assembling data from the configuration settings.
*