preCICE
Loading...
Searching...
No Matches
SocketCommunicationFactory.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <string>
8
9namespace precice::com {
11public:
12 SocketCommunicationFactory(unsigned short portNumber = 0,
13 bool reuseAddress = false,
14 std::string networkName = utils::networking::loopbackInterfaceName(),
15 std::string addressDirectory = ".");
16
17 explicit SocketCommunicationFactory(std::string const &addressDirectory);
18
20
21 std::string addressDirectory() override;
22
23private:
24 unsigned short _portNumber;
26 std::string _networkName;
27 std::string _addressDirectory;
28};
29} // namespace precice::com
SocketCommunicationFactory(unsigned short portNumber=0, bool reuseAddress=false, std::string networkName=utils::networking::loopbackInterfaceName(), std::string addressDirectory=".")
contains the data communication abstraction layer.
std::shared_ptr< Communication > PtrCommunication
std::string loopbackInterfaceName()
Returns the name of the canonical loopback interface on this system.
Definition networking.cpp:5