gpg:: IMessageListener
這是抽象類別。
#include <i_message_listener.h>
定義可以從遠端端點傳送訊息的介面。
摘要
建構函式和解構函式 |
|
---|---|
~IMessageListener()
|
公開函式 |
|
---|---|
OnDisconnected(int64_t client_id, const std::string & remote_endpoint_id)=0
|
virtual void
遠端端點中斷連線時叫用。
|
OnMessageReceived(int64_t client_id, const std::string & remote_endpoint_id, const std::vector< uint8_t > & payload, bool is_reliable)=0
|
virtual void
收到遠端端點的訊息時叫用。
|
公開函式
OnDisconnected
virtual void OnDisconnected( int64_t client_id, const std::string & remote_endpoint_id )=0
遠端端點中斷連線時叫用。
OnMessageReceived
virtual void OnMessageReceived( int64_t client_id, const std::string & remote_endpoint_id, const std::vector< uint8_t > & payload, bool is_reliable )=0
收到遠端端點的訊息時叫用。
~IMessageListener
virtual ~IMessageListener()