MFEM
v4.4.0
Finite element discretization library
|
#include <socketstream.hpp>
Public Member Functions | |
GnuTLS_socketbuf (const GnuTLS_session_params &p) | |
virtual | ~GnuTLS_socketbuf () |
bool | gnutls_good () const |
virtual int | attach (int sd) |
virtual int | open (const char hostname[], int port) |
Open a socket on the 'port' at 'hostname' and store the socket descriptor. Returns 0 if there is no error, otherwise returns -1. More... | |
virtual int | close () |
Close the current socket descriptor. More... | |
Public Member Functions inherited from mfem::socketbuf | |
socketbuf () | |
socketbuf (int sd) | |
socketbuf (const char hostname[], int port) | |
int | detach () |
Detach the current socket descriptor from the socketbuf. More... | |
int | getsocketdescriptor () |
Returns the attached socket descriptor. More... | |
bool | is_open () |
Returns true if the socket is open and has a valid socket descriptor. Otherwise returns false. More... | |
virtual | ~socketbuf () |
Protected Member Functions | |
void | handshake () |
void | start_session () |
void | end_session () |
virtual int | sync () |
virtual int_type | underflow () |
virtual std::streamsize | xsgetn (char_type *s__, std::streamsize n__) |
virtual std::streamsize | xsputn (const char_type *s__, std::streamsize n__) |
Protected Member Functions inherited from mfem::socketbuf | |
virtual int_type | overflow (int_type c=traits_type::eof()) |
Protected Attributes | |
GnuTLS_status | status |
gnutls_session_t | session |
bool | session_started |
const GnuTLS_session_params & | params |
gnutls_certificate_credentials_t | my_cred |
Protected Attributes inherited from mfem::socketbuf | |
int | socket_descriptor |
char | ibuf [buflen] |
char | obuf [buflen] |
Additional Inherited Members | |
Static Protected Attributes inherited from mfem::socketbuf | |
static const int | buflen = 1024 |
Definition at line 164 of file socketstream.hpp.
|
inline |
Definition at line 179 of file socketstream.hpp.
|
inlinevirtual |
Definition at line 183 of file socketstream.hpp.
|
virtual |
Attach a new socket descriptor to the socketbuf. Returns the old socket descriptor which is NOT closed.
Reimplemented from mfem::socketbuf.
Definition at line 742 of file socketstream.cpp.
|
virtual |
Close the current socket descriptor.
Reimplemented from mfem::socketbuf.
Definition at line 771 of file socketstream.cpp.
|
protected |
Definition at line 711 of file socketstream.cpp.
|
inline |
Definition at line 185 of file socketstream.hpp.
|
protected |
Definition at line 548 of file socketstream.cpp.
|
virtual |
Open a socket on the 'port' at 'hostname' and store the socket descriptor. Returns 0 if there is no error, otherwise returns -1.
Reimplemented from mfem::socketbuf.
Definition at line 757 of file socketstream.cpp.
|
protected |
Definition at line 586 of file socketstream.cpp.
|
protectedvirtual |
Reimplemented from mfem::socketbuf.
Definition at line 784 of file socketstream.cpp.
|
protectedvirtual |
Reimplemented from mfem::socketbuf.
Definition at line 811 of file socketstream.cpp.
|
protectedvirtual |
Reimplemented from mfem::socketbuf.
Definition at line 848 of file socketstream.cpp.
|
protectedvirtual |
Reimplemented from mfem::socketbuf.
Definition at line 894 of file socketstream.cpp.
|
protected |
Definition at line 172 of file socketstream.hpp.
|
protected |
Definition at line 171 of file socketstream.hpp.
|
protected |
Definition at line 168 of file socketstream.hpp.
|
protected |
Definition at line 169 of file socketstream.hpp.
|
protected |
Definition at line 167 of file socketstream.hpp.