helics
2.8.1
src
helics
network
tcp
TcpCommsCommon.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2017-2021,
3
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5
SPDX-License-Identifier: BSD-3-Clause
6
*/
7
#pragma once
8
12
#include "
TcpHelperClasses.h
"
13
14
#include <chrono>
15
#include <string>
16
17
class
AsioContextManager
;
18
namespace
asio {
19
class
io_context;
20
}
// namespace asio
21
22
namespace
helics
{
23
class
CommsInterface;
24
25
namespace
tcp {
27
TcpConnection::pointer makeConnection(asio::io_context& io_context,
28
const
std::string& connection,
29
const
std::string& port,
30
size_t
bufferSize,
31
std::chrono::milliseconds timeOut);
32
34
bool
commErrorHandler(CommsInterface* comm,
35
TcpConnection* connection,
36
const
std::error_code& error);
37
}
// namespace tcp
38
}
// namespace helics
TcpHelperClasses.h
AsioContextManager
Definition:
AsioContextManager.h:42
TcpCommsCommon.h
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition:
AsyncFedCallInfo.hpp:14
error
@ error
only print errors
Definition:
loggingHelper.hpp:22
Generated by
1.8.17