MFEM
v3.0
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
general
isockstream.hpp
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.googlecode.com.
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
#ifndef MFEM_ISOCKSTREAM
13
#define MFEM_ISOCKSTREAM
14
15
#include "../config/config.hpp"
16
#include <sstream>
17
18
namespace
mfem
19
{
20
26
class
isockstream
27
{
28
private
:
29
int
portnum, portID, socketID, error;
30
char
*Buf;
31
32
int
establish();
33
int
read_data(
int
socketid,
char
*buf,
int
size);
34
35
public
:
36
39
explicit
isockstream
(
int
port);
40
41
bool
good
() {
return
(!error); }
42
44
void
receive
(std::istringstream **in);
45
47
~isockstream
();
48
};
49
50
}
51
52
#endif
mfem::isockstream::good
bool good()
Definition:
isockstream.hpp:41
mfem::isockstream::isockstream
isockstream(int port)
Definition:
isockstream.cpp:37
mfem::isockstream::receive
void receive(std::istringstream **in)
Start waiting for data and return it in an input stream.
Definition:
isockstream.cpp:116
mfem::isockstream
Definition:
isockstream.hpp:26
mfem::isockstream::~isockstream
~isockstream()
Definition:
isockstream.cpp:156
Generated on Fri Feb 18 2022 18:57:40 for MFEM by
1.8.5