Stay organized with collections
Save and categorize content based on your preferences.
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
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()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-28 UTC."],[],[],null,["# gpg::IEndpointDiscoveryListener Class Reference\n\ngpg::IEndpointDiscoveryListener\n===============================\n\n**This is an abstract class.** \n\n`#include \u003ci_endpoint_discovery_listener.h\u003e`\n\nDefines an interface which can be delivered events relating to remote endpoint discovery.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~IEndpointDiscoveryListener](#classgpg_1_1_i_endpoint_discovery_listener_1af718bcd26588adb81940859a661c259e)`()` ||\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OnEndpointFound](#classgpg_1_1_i_endpoint_discovery_listener_1a63a9026d38cd0f4cd243c0b78de3e912)`(int64_t client_id, const `[EndpointDetails](/games/services/cpp/api/struct/gpg/endpoint-details#structgpg_1_1_endpoint_details)` & endpoint_details)=0` | `virtual void` Invoked when a remote endpoint is found; will be invoked once for each endpoint discovered. |\n| [OnEndpointLost](#classgpg_1_1_i_endpoint_discovery_listener_1a51c0db65f67b47f105cd44b89ced342a)`(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`. |\n\nPublic functions\n----------------\n\n### OnEndpointFound\n\n```c++\nvirtual void OnEndpointFound(\n int64_t client_id,\n const EndpointDetails & endpoint_details\n)=0\n``` \nInvoked when a remote endpoint is found; will be invoked once for each endpoint discovered.\n\nNote 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. \n\n### OnEndpointLost\n\n```c++\nvirtual void OnEndpointLost(\n int64_t client_id,\n const std::string & remote_endpoint_id\n)=0\n``` \nInvoked when a remote endpoint is no longer discoverable; will only be called with IDs that previously were passed to `OnEndpointFound`.\n\nNote 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. \n\n### \\~IEndpointDiscoveryListener\n\n```c++\nvirtual ~IEndpointDiscoveryListener()\n```"]]