gpg:: IMessage Listener
এটি একটি বিমূর্ত ক্লাস।#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 রিমোট এন্ডপয়েন্ট থেকে একটি বার্তা প্রাপ্ত হলে আহ্বান করা হয়। |
পাবলিক ফাংশন
সংযোগ বিচ্ছিন্ন
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
রিমোট এন্ডপয়েন্ট থেকে একটি বার্তা প্রাপ্ত হলে আহ্বান করা হয়।
~আইমেসেজ লিসনার
virtual ~IMessageListener()