MFEM
v4.5.2
Finite element discretization library
general
osockstream.cpp
Go to the documentation of this file.
1
// Copyright (c) 2010-2023, Lawrence Livermore National Security, LLC. Produced
2
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3
// LICENSE and NOTICE for details. LLNL-CODE-806117.
4
//
5
// This file is part of the MFEM library. For more information and source code
6
// availability visit https://mfem.org.
7
//
8
// MFEM is free software; you can redistribute it and/or modify it under the
9
// terms of the BSD-3 license. We welcome feedback and contributions, see file
10
// CONTRIBUTING.md for details.
11
12
#include "
osockstream.hpp
"
13
#include "
globals.hpp
"
14
15
namespace
mfem
16
{
17
18
osockstream::osockstream
(
int
port,
const
char
*hostname)
19
:
socketstream
(hostname, port)
20
{
21
if
(!
is_open
())
22
{
23
mfem::err
<<
"Unable to connect to port "
<< port <<
" on "
24
<< hostname <<
'\n'
;
25
}
26
}
27
28
}
mfem::err
OutStream err(std::cerr)
Global stream used by the library for standard error output. Initially it uses the same std::streambu...
Definition:
globals.hpp:71
mfem
Definition:
CodeDocumentation.dox:1
mfem::socketstream
Definition:
socketstream.hpp:210
mfem::socketstream::is_open
bool is_open()
True if the socketstream is open, false otherwise.
Definition:
socketstream.hpp:272
mfem::osockstream::osockstream
osockstream(int port, const char *hostname)
Definition:
osockstream.cpp:18
osockstream.hpp
globals.hpp
Generated on Thu Mar 23 2023 16:28:22 for MFEM by
1.8.14