red-channel-client: Move some methods to a protected section

Reduce visibility and increase encapsulation.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-05-23 02:32:50 +01:00 committed by Frediano Ziglio
parent f42a20c508
commit 9ae11a3545

View File

@ -49,7 +49,6 @@ public:
bool is_connected() const;
bool is_waiting_for_migrate_data() const;
bool test_remote_common_cap(uint32_t cap) const;
bool test_remote_cap(uint32_t cap) const;
/* shutdown is the only safe thing to do out of the client/channel
* thread. It will not touch the rings, just shutdown the socket.
@ -140,7 +139,6 @@ public:
RedChannel* get_channel();
void semi_seamless_migration_complete();
void init_outgoing_messages_window();
bool set_migration_seamless();
@ -154,6 +152,10 @@ public:
// callback from client
virtual void migrate();
protected:
bool test_remote_common_cap(uint32_t cap) const;
void init_outgoing_messages_window();
/* configure socket connected to the client */
virtual bool config_socket() { return true; }
virtual uint8_t *alloc_recv_buf(uint16_t type, uint32_t size)=0;