MFEM
v3.3.2
Finite element discretization library
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
general
osockstream.cpp
Go to the documentation of this file.
1
// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3
// reserved. See file COPYRIGHT for details.
4
//
5
// This file is part of the MFEM library. For more information and source code
6
// availability see http://mfem.org.
7
//
8
// MFEM is free software; you can redistribute it and/or modify it under the
9
// terms of the GNU Lesser General Public License (as published by the Free
10
// Software Foundation) version 2.1 dated February 1999.
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::socketstream
Definition:
socketstream.hpp:201
mfem::socketstream::is_open
bool is_open()
Definition:
socketstream.hpp:260
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:69
mfem::osockstream::osockstream
osockstream(int port, const char *hostname)
Definition:
osockstream.cpp:18
osockstream.hpp
globals.hpp
Generated on Fri Feb 18 2022 19:42:04 for MFEM by
1.8.5