blob: f63721ea9c49ef0637950e0cfa2d07b0d86ae232 [file] [log] [blame]
/*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* Provides a generic implementation of ConnectivityManager features
* for use on platforms that use TCP.
*/
#ifndef GENERIC_CONNECTIVITY_MANAGER_IMPL_TCP_CPP
#define GENERIC_CONNECTIVITY_MANAGER_IMPL_TCP_CPP
#include <platform/internal/CHIPDeviceLayerInternal.h>
namespace chip {
namespace DeviceLayer {
namespace Internal {
template <class ImplClass>
chip::Inet::EndPointManager<Inet::TCPEndPoint> & GenericConnectivityManagerImpl_TCP<ImplClass>::_TCPEndPointManager()
{
static chip::Inet::TCPEndPointManagerImpl sTCPEndPointManagerImpl;
return sTCPEndPointManagerImpl;
}
// Fully instantiate the generic implementation class in whatever compilation unit includes this file.
// NB: This must come after all templated class members are defined.
template class GenericConnectivityManagerImpl_TCP<ConnectivityManagerImpl>;
} // namespace Internal
} // namespace DeviceLayer
} // namespace chip
#endif // GENERIC_CONNECTIVITY_MANAGER_IMPL_TCP_CPP