preCICE
v3.1.2
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
f
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
utils
networking.cpp
Go to the documentation of this file.
1
#include "
utils/networking.hpp
"
2
3
namespace
precice::utils::networking
{
4
5
std::string
loopbackInterfaceName
()
6
{
7
#if defined(__linux__)
8
return
"lo"
;
9
#elif defined(__APPLE__) || defined(BSD)
10
return
"lo0"
;
11
#elif defined(__WIN32)
12
// Not required as we directly use the 127.0.0.1 under Windows
13
return
""
;
14
#else
15
#warning "Your target architecture does not define a loopback interface. Please consider reporting this to the preCICE developers."
16
return
""
;
17
#endif
18
}
5
std::string
loopbackInterfaceName
() {
…
}
19
20
}
// namespace precice::utils::networking
3
namespace
precice::utils::networking
{
…
}
std::string
precice::utils::networking
Definition
networking.cpp:3
precice::utils::networking::loopbackInterfaceName
std::string loopbackInterfaceName()
Returns the name of the canonical loopback interface on this system.
Definition
networking.cpp:5
networking.hpp