gpg::IEndpointDiscoveryListener

This is an abstract class.

#include <i_endpoint_discovery_listener.h>

Defines an interface which can be delivered events relating to remote endpoint discovery.

Summary

Constructors and Destructors

~IEndpointDiscoveryListener()

Public functions

OnEndpointFound(int64_t client_id, const EndpointDetails & endpoint_details)=0
virtual void
Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered.
OnEndpointLost(int64_t client_id, const std::string & remote_endpoint_id)=0
virtual void
Invoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to OnEndpointFound.

Public functions

OnEndpointFound

virtual void OnEndpointFound(
  int64_t client_id,
  const EndpointDetails & endpoint_details
)=0

Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered.

Note that this method may be invoked repeatedly in short succession; you may wish to delay the update to the UI to reflect the new endpoint for some short time period after the method is invoked.

OnEndpointLost

virtual void OnEndpointLost(
  int64_t client_id,
  const std::string & remote_endpoint_id
)=0

Invoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to OnEndpointFound.

Note that this method may be invoked repeatedly in short succession; you may with to delay the update to the UI to reflect the endpoint being gone for some short time period after the method is invoked.

~IEndpointDiscoveryListener

virtual  ~IEndpointDiscoveryListener()