mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[Multiplex] Create ShutdownAll() method to shutdown all the virtual sockets and streams.
PiperOrigin-RevId: 660875041
This commit is contained in:
@@ -107,10 +107,11 @@ class MultiplexSocket {
|
||||
void Shutdown();
|
||||
bool IsShutdown() { return is_shutdown_; }
|
||||
void SetShutdown(bool is_shutdown) { is_shutdown_ = is_shutdown; }
|
||||
void ShutdownAll();
|
||||
|
||||
private:
|
||||
explicit MultiplexSocket(std::shared_ptr<MediumSocket> physical_socket);
|
||||
~MultiplexSocket() = default;
|
||||
~MultiplexSocket() { ShutdownAll(); };
|
||||
|
||||
// Creates the first virtual socket for the service id. The first virtual
|
||||
// socket is created by the sender.
|
||||
|
||||
Reference in New Issue
Block a user