File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 30
30
#include < protocols/secure_channel/MessageCounterManager.h>
31
31
#include < support/ErrorStr.h>
32
32
33
- // The ExchangeManager global object.
33
+ chip::SecureSessionMgr gSessionManager ;
34
34
chip::Messaging::ExchangeManager gExchangeManager ;
35
35
chip::secure_channel::MessageCounterManager gMessageCounterManager ;
36
36
@@ -58,6 +58,8 @@ void InitializeChip(void)
58
58
59
59
void ShutdownChip (void )
60
60
{
61
- gExchangeManager .Shutdown ();
62
61
chip::DeviceLayer::PlatformMgr ().Shutdown ();
62
+ gMessageCounterManager .Shutdown ();
63
+ gExchangeManager .Shutdown ();
64
+ gSessionManager .Shutdown ();
63
65
}
Original file line number Diff line number Diff line change 26
26
27
27
#include < messaging/ExchangeMgr.h>
28
28
#include < protocols/secure_channel/MessageCounterManager.h>
29
+ #include < transport/SecureSessionMgr.h>
29
30
30
31
constexpr size_t kMaxTcpActiveConnectionCount = 4 ;
31
32
constexpr size_t kMaxTcpPendingPackets = 4 ;
32
33
constexpr size_t kNetworkSleepTimeMsecs = (100 * 1000 );
33
34
35
+ extern chip::SecureSessionMgr gSessionManager ;
34
36
extern chip::Messaging::ExchangeManager gExchangeManager ;
35
37
extern chip::secure_channel::MessageCounterManager gMessageCounterManager ;
36
38
Original file line number Diff line number Diff line change 35
35
#include < protocols/secure_channel/PASESession.h>
36
36
#include < support/ErrorStr.h>
37
37
#include < system/SystemPacketBuffer.h>
38
- #include < transport/SecureSessionMgr.h>
39
38
#include < transport/raw/TCP.h>
40
39
#include < transport/raw/UDP.h>
41
40
@@ -60,7 +59,6 @@ chip::Protocols::Echo::EchoClient gEchoClient;
60
59
61
60
chip::TransportMgr<chip::Transport::UDP> gUDPManager ;
62
61
chip::TransportMgr<chip::Transport::TCP<kMaxTcpActiveConnectionCount , kMaxTcpPendingPackets >> gTCPManager ;
63
- chip::SecureSessionMgr gSessionManager ;
64
62
chip::Inet::IPAddress gDestAddr ;
65
63
66
64
// The last time a CHIP Echo was attempted to be sent.
Original file line number Diff line number Diff line change 35
35
#include < protocols/secure_channel/PASESession.h>
36
36
#include < support/ErrorStr.h>
37
37
#include < system/SystemPacketBuffer.h>
38
- #include < transport/SecureSessionMgr.h>
39
38
#include < transport/raw/TCP.h>
40
39
#include < transport/raw/UDP.h>
41
40
@@ -45,7 +44,6 @@ namespace {
45
44
chip::Protocols::Echo::EchoServer gEchoServer ;
46
45
chip::TransportMgr<chip::Transport::UDP> gUDPManager ;
47
46
chip::TransportMgr<chip::Transport::TCP<kMaxTcpActiveConnectionCount , kMaxTcpPendingPackets >> gTCPManager ;
48
- chip::SecureSessionMgr gSessionManager ;
49
47
chip::SecurePairingUsingTestSecret gTestPairing ;
50
48
51
49
// Callback handler when a CHIP EchoRequest is received.
You can’t perform that action at this time.
0 commit comments