SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
cl_http
src
cl_http
cl_http.cpp
Go to the documentation of this file.
1
// Copyright 2023 RobosoftAI Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
/*****************************************************************************************************************
16
*
17
* Authors: Jaycee Lock & Brett Aldrich
18
*
19
******************************************************************************************************************/
20
21
#include <
cl_http/cl_http.hpp
>
22
23
namespace
cl_http
24
{
25
ClHttp::ClHttp
(
const
std::string & server_name,
const
int
&
/*timeout*/
)
26
: initialized_{false},
27
server_url_{server_name},
28
connectionManager_{nullptr},
29
sessionManager_{nullptr},
30
requestExecutor_{nullptr}
31
{
32
// Timeout parameter kept for API compatibility but unused (managed by components)
33
}
34
35
ClHttp::~ClHttp
()
36
{
37
// Thread cleanup handled by CpHttpConnectionManager destructor
38
}
39
40
void
ClHttp::onInitialize
()
41
{
42
// Components created in onComponentInitialization()
43
this->
initialized_
=
true
;
44
}
45
}
// namespace cl_http
cl_http.hpp
cl_http::ClHttp::ClHttp
ClHttp(const std::string &server, const int &timeout=1500)
Definition
cl_http.cpp:25
cl_http::ClHttp::onInitialize
void onInitialize() override
Definition
cl_http.cpp:40
cl_http::ClHttp::~ClHttp
virtual ~ClHttp()
Definition
cl_http.cpp:35
cl_http::ClHttp::initialized_
bool initialized_
Definition
cl_http.hpp:98
cl_http
Definition
cl_http.hpp:45
Generated by
1.12.0