mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
Add ClientPool
Clients are created and kept in the pool at first. ClientList gets a free client from the pool. Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -152,7 +152,8 @@ private:
|
||||
=====================================*/
|
||||
typedef enum
|
||||
{
|
||||
Cstat_Disconnected = 0,
|
||||
Cstat_Free = 0,
|
||||
Cstat_Disconnected,
|
||||
Cstat_TryConnecting,
|
||||
Cstat_Connecting,
|
||||
Cstat_Active,
|
||||
@@ -176,6 +177,7 @@ class Forwarder;
|
||||
class Client
|
||||
{
|
||||
friend class ClientList;
|
||||
friend class ClientsPool;
|
||||
public:
|
||||
Client(bool secure = false);
|
||||
Client(uint8_t maxInflightMessages, bool secure);
|
||||
|
||||
Reference in New Issue
Block a user