MFEM
v4.5.1
Finite element discretization library
|
#include <socketstream.hpp>
Public Member Functions | |
socketstream (bool secure=secure_default) | |
Create a socket stream without connecting to a host. More... | |
socketstream (socketbuf *buf) | |
Create a socket stream associated with the given socket buffer. The new object takes ownership of 'buf'. More... | |
socketstream (int s, bool secure=secure_default) | |
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. More... | |
socketstream (const char hostname[], int port, bool secure=secure_default) | |
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. More... | |
socketstream (const GnuTLS_session_params &p) | |
Create a secure socket stream using the given GnuTLS_session_params. More... | |
socketbuf * | rdbuf () |
int | open (const char hostname[], int port) |
Open the socket stream on 'port' at 'hostname'. More... | |
int | close () |
Close the socketstream. More... | |
bool | is_open () |
True if the socketstream is open, false otherwise. More... | |
virtual | ~socketstream () |
Static Public Attributes | |
static const bool | secure_default = true |
Protected Member Functions | |
void | set_socket (bool secure) |
void | check_secure_socket () |
void | set_secure_socket (const GnuTLS_session_params &p) |
Static Protected Member Functions | |
static GnuTLS_session_params & | add_socket () |
static void | remove_socket () |
Protected Attributes | |
socketbuf * | buf__ |
bool | glvis_client |
Static Protected Attributes | |
static int | num_glvis_sockets = 0 |
static GnuTLS_global_state * | state = NULL |
static GnuTLS_session_params * | params = NULL |
Definition at line 210 of file socketstream.hpp.
mfem::socketstream::socketstream | ( | bool | secure = secure_default | ) |
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 1037 of file socketstream.cpp.
|
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.
|
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 1043 of file socketstream.cpp.
|
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.
|
explicit |
Create a secure socket stream using the given GnuTLS_session_params.
Definition at line 1001 of file socketstream.cpp.
|
virtual |
Definition at line 1064 of file socketstream.cpp.
|
staticprotected |
Definition at line 946 of file socketstream.cpp.
|
inlineprotected |
Definition at line 1029 of file socketstream.cpp.
|
inline |
Close the socketstream.
Definition at line 269 of file socketstream.hpp.
|
inline |
True if the socketstream is open, false otherwise.
Definition at line 272 of file socketstream.hpp.
int mfem::socketstream::open | ( | const char | hostname[], |
int | port | ||
) |
Open the socket stream on 'port' at 'hostname'.
Definition at line 1050 of file socketstream.cpp.
|
inline |
Definition at line 263 of file socketstream.hpp.
|
staticprotected |
Definition at line 982 of file socketstream.cpp.
|
inlineprotected |
Definition at line 995 of file socketstream.cpp.
|
protected |
Definition at line 1010 of file socketstream.cpp.
|
protected |
Definition at line 213 of file socketstream.hpp.
|
protected |
Definition at line 214 of file socketstream.hpp.
|
staticprotected |
Definition at line 219 of file socketstream.hpp.
|
staticprotected |
Definition at line 221 of file socketstream.hpp.
|
static |
Definition at line 229 of file socketstream.hpp.
|
staticprotected |
Definition at line 220 of file socketstream.hpp.