Added the method AddressBookGetContact and minor improvements in other implementations
This commit is contained in:
parent
e2a0e2f27f
commit
aba9adf916
4 changed files with 62 additions and 8 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue