#include <socketstream.hpp>
Definition at line 210 of file socketstream.hpp.
◆ socketstream() [1/5]
Create a socket stream without connecting to a host.
If 'secure' is true, (GnuTLS support must be enabled) then the connection will use GLVis client session keys from ~/.config/glvis/client for GnuTLS identification. If you want to use other GnuTLS session keys or parameters, use the constructor from GnuTLS_session_params.
Definition at line 1038 of file socketstream.cpp.
◆ socketstream() [2/5]
mfem::socketstream::socketstream |
( |
socketbuf * |
buf | ) |
|
|
inlineexplicit |
Create a socket stream associated with the given socket buffer. The new object takes ownership of 'buf'.
Definition at line 244 of file socketstream.hpp.
◆ socketstream() [3/5]
mfem::socketstream::socketstream |
( |
int |
s, |
|
|
bool |
secure = secure_default |
|
) |
| |
|
explicit |
Create a socket stream and associate it with the given socket descriptor 's'. The treatment of the 'secure' flag is similar to that in the default constructor.
Definition at line 1044 of file socketstream.cpp.
◆ socketstream() [4/5]
mfem::socketstream::socketstream |
( |
const char |
hostname[], |
|
|
int |
port, |
|
|
bool |
secure = secure_default |
|
) |
| |
|
inline |
Create a socket stream and connect to the given host and port. The treatment of the 'secure' flag is similar to that in the default constructor.
Definition at line 255 of file socketstream.hpp.
◆ socketstream() [5/5]
◆ ~socketstream()
mfem::socketstream::~socketstream |
( |
| ) |
|
|
virtual |
◆ add_socket()
◆ check_secure_socket()
void mfem::socketstream::check_secure_socket |
( |
| ) |
|
|
inlineprotected |
◆ close()
int mfem::socketstream::close |
( |
| ) |
|
|
inline |
◆ is_open()
bool mfem::socketstream::is_open |
( |
| ) |
|
|
inline |
True if the socketstream is open, false otherwise.
Definition at line 272 of file socketstream.hpp.
◆ open()
int mfem::socketstream::open |
( |
const char |
hostname[], |
|
|
int |
port |
|
) |
| |
◆ rdbuf()
◆ remove_socket()
void mfem::socketstream::remove_socket |
( |
| ) |
|
|
staticprotected |
◆ set_secure_socket()
◆ set_socket()
void mfem::socketstream::set_socket |
( |
bool |
secure | ) |
|
|
protected |
◆ buf__
◆ glvis_client
bool mfem::socketstream::glvis_client |
|
protected |
◆ num_glvis_sockets
int mfem::socketstream::num_glvis_sockets = 0 |
|
staticprotected |
◆ params
◆ secure_default
static const bool mfem::socketstream::secure_default = true |
|
static |
◆ state
The documentation for this class was generated from the following files: