MFEM  v4.4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::GnuTLS_socketbuf Class Reference

#include <socketstream.hpp>

Inheritance diagram for mfem::GnuTLS_socketbuf:
[legend]
Collaboration diagram for mfem::GnuTLS_socketbuf:
[legend]

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_paramsparams
 
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
 

Detailed Description

Definition at line 164 of file socketstream.hpp.

Constructor & Destructor Documentation

mfem::GnuTLS_socketbuf::GnuTLS_socketbuf ( const GnuTLS_session_params p)
inline

Definition at line 179 of file socketstream.hpp.

virtual mfem::GnuTLS_socketbuf::~GnuTLS_socketbuf ( )
inlinevirtual

Definition at line 183 of file socketstream.hpp.

Member Function Documentation

int mfem::GnuTLS_socketbuf::attach ( int  sd)
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.

int mfem::GnuTLS_socketbuf::close ( )
virtual

Close the current socket descriptor.

Reimplemented from mfem::socketbuf.

Definition at line 771 of file socketstream.cpp.

void mfem::GnuTLS_socketbuf::end_session ( )
protected

Definition at line 711 of file socketstream.cpp.

bool mfem::GnuTLS_socketbuf::gnutls_good ( ) const
inline

Definition at line 185 of file socketstream.hpp.

void mfem::GnuTLS_socketbuf::handshake ( )
protected

Definition at line 548 of file socketstream.cpp.

int mfem::GnuTLS_socketbuf::open ( const char  hostname[],
int  port 
)
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.

void mfem::GnuTLS_socketbuf::start_session ( )
protected

Definition at line 586 of file socketstream.cpp.

int mfem::GnuTLS_socketbuf::sync ( )
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 784 of file socketstream.cpp.

GnuTLS_socketbuf::int_type mfem::GnuTLS_socketbuf::underflow ( )
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 811 of file socketstream.cpp.

std::streamsize mfem::GnuTLS_socketbuf::xsgetn ( char_type *  s__,
std::streamsize  n__ 
)
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 848 of file socketstream.cpp.

std::streamsize mfem::GnuTLS_socketbuf::xsputn ( const char_type *  s__,
std::streamsize  n__ 
)
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 894 of file socketstream.cpp.

Member Data Documentation

gnutls_certificate_credentials_t mfem::GnuTLS_socketbuf::my_cred
protected

Definition at line 172 of file socketstream.hpp.

const GnuTLS_session_params& mfem::GnuTLS_socketbuf::params
protected

Definition at line 171 of file socketstream.hpp.

gnutls_session_t mfem::GnuTLS_socketbuf::session
protected

Definition at line 168 of file socketstream.hpp.

bool mfem::GnuTLS_socketbuf::session_started
protected

Definition at line 169 of file socketstream.hpp.

GnuTLS_status mfem::GnuTLS_socketbuf::status
protected

Definition at line 167 of file socketstream.hpp.


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