MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::isockstream Class Reference

#include <isockstream.hpp>

Public Member Functions

 isockstream (int port)
 
bool good ()
 
void receive (std::istringstream **in)
 Start waiting for data and return it in an input stream.
 
 ~isockstream ()
 

Detailed Description

Data type for input socket stream class. The class is used as server to receive data from a client on specified port number. The user gets data from the stream as from any other input stream.

Deprecated
This class is DEPRECATED. New code should use class socketserver (see socketstream.hpp).

Definition at line 26 of file isockstream.hpp.

Constructor & Destructor Documentation

◆ isockstream()

mfem::isockstream::isockstream ( int port)
explicit

The constructor takes as input the port number on which it establishes a server.

Definition at line 40 of file isockstream.cpp.

◆ ~isockstream()

mfem::isockstream::~isockstream ( )

Virtual destructor. If the data hasn't been sent it sends it.

Definition at line 188 of file isockstream.cpp.

Member Function Documentation

◆ good()

bool mfem::isockstream::good ( )
inline

Definition at line 41 of file isockstream.hpp.

◆ receive()

void mfem::isockstream::receive ( std::istringstream ** in)

Start waiting for data and return it in an input stream.

Definition at line 138 of file isockstream.cpp.


The documentation for this class was generated from the following files: