preCICE v3.2.0
Loading...
Searching...
No Matches
SocketCommunicationFactory.cpp
Go to the documentation of this file.
2#include <memory>
3#include <utility>
4
8
9namespace precice::com {
11 unsigned short portNumber,
12 bool reuseAddress,
13 std::string networkName,
15 : _portNumber(portNumber),
16 _reuseAddress(reuseAddress),
17 _networkName(std::move(networkName)),
19{
20 if (_addressDirectory.empty()) {
21 _addressDirectory = ".";
22 }
23}
24
30
36
41} // namespace precice::com
SocketCommunicationFactory(unsigned short portNumber=0, bool reuseAddress=false, std::string networkName=utils::networking::loopbackInterfaceName(), std::string addressDirectory=".")
T make_shared(T... args)
contains the data communication abstraction layer.
std::shared_ptr< Communication > PtrCommunication
contains precice-related utilities.
STL namespace.