Stay organized with collections
Save and categorize content based on your preferences.
gpg::IMessageListener
This is an abstract class.
#include <i_message_listener.h>
Defines an interface which can be delivered messages from remote endpoints.
Summary
Public functions
|
OnDisconnected(int64_t client_id, const std::string & remote_endpoint_id)=0
|
virtual void
Invoked when a remote endpoint is disconnected.
|
OnMessageReceived(int64_t client_id, const std::string & remote_endpoint_id, const std::vector< uint8_t > & payload, bool is_reliable)=0
|
virtual void
Invoked when a message is received from a remote endpoint.
|
Public functions
OnDisconnected
virtual void OnDisconnected(
int64_t client_id,
const std::string & remote_endpoint_id
)=0
Invoked when a remote endpoint is disconnected.
OnMessageReceived
virtual void OnMessageReceived(
int64_t client_id,
const std::string & remote_endpoint_id,
const std::vector< uint8_t > & payload,
bool is_reliable
)=0
Invoked when a message is received from a remote endpoint.
~IMessageListener
virtual ~IMessageListener()
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::IMessageListener Class Reference\n\ngpg::IMessageListener\n=====================\n\n**This is an abstract class.** \n\n`#include \u003ci_message_listener.h\u003e`\n\nDefines an interface which can be delivered messages from remote endpoints.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~IMessageListener](#classgpg_1_1_i_message_listener_1acc0fdd81937ebdee00a393528260cbdc)`()` ||\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [OnDisconnected](#classgpg_1_1_i_message_listener_1af7d6fda3f0533b31dd7017289e73cef7)`(int64_t client_id, const std::string & remote_endpoint_id)=0` | `virtual void` Invoked when a remote endpoint is disconnected. |\n| [OnMessageReceived](#classgpg_1_1_i_message_listener_1a7b39ffae7095afc4678825f8f3a319e2)`(int64_t client_id, const std::string & remote_endpoint_id, const std::vector\u003c uint8_t \u003e & payload, bool is_reliable)=0` | `virtual void` Invoked when a message is received from a remote endpoint. |\n\nPublic functions\n----------------\n\n### OnDisconnected\n\n```c++\nvirtual void OnDisconnected(\n int64_t client_id,\n const std::string & remote_endpoint_id\n)=0\n``` \nInvoked when a remote endpoint is disconnected. \n\n### OnMessageReceived\n\n```c++\nvirtual void OnMessageReceived(\n int64_t client_id,\n const std::string & remote_endpoint_id,\n const std::vector\u003c uint8_t \u003e & payload,\n bool is_reliable\n)=0\n``` \nInvoked when a message is received from a remote endpoint. \n\n### \\~IMessageListener\n\n```c++\nvirtual ~IMessageListener()\n```"]]