MFEM  v3.3
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)
 
virtual int close ()
 
- Public Member Functions inherited from mfem::socketbuf
 socketbuf ()
 
 socketbuf (int sd)
 
 socketbuf (const char hostname[], int port)
 
int detach ()
 
int getsocketdescriptor ()
 
bool is_open ()
 
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 155 of file socketstream.hpp.

Constructor & Destructor Documentation

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

Definition at line 170 of file socketstream.hpp.

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

Definition at line 174 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 661 of file socketstream.cpp.

int mfem::GnuTLS_socketbuf::close ( )
virtual

Reimplemented from mfem::socketbuf.

Definition at line 690 of file socketstream.cpp.

void mfem::GnuTLS_socketbuf::end_session ( )
protected

Definition at line 631 of file socketstream.cpp.

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

Definition at line 176 of file socketstream.hpp.

void mfem::GnuTLS_socketbuf::handshake ( )
protected

Definition at line 483 of file socketstream.cpp.

int mfem::GnuTLS_socketbuf::open ( const char  hostname[],
int  port 
)
virtual

Reimplemented from mfem::socketbuf.

Definition at line 676 of file socketstream.cpp.

void mfem::GnuTLS_socketbuf::start_session ( )
protected

Definition at line 521 of file socketstream.cpp.

int mfem::GnuTLS_socketbuf::sync ( )
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 703 of file socketstream.cpp.

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

Reimplemented from mfem::socketbuf.

Definition at line 730 of file socketstream.cpp.

std::streamsize mfem::GnuTLS_socketbuf::xsgetn ( char_type *  __s,
std::streamsize  __n 
)
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 767 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 813 of file socketstream.cpp.

Member Data Documentation

gnutls_certificate_credentials_t mfem::GnuTLS_socketbuf::my_cred
protected

Definition at line 163 of file socketstream.hpp.

const GnuTLS_session_params& mfem::GnuTLS_socketbuf::params
protected

Definition at line 162 of file socketstream.hpp.

gnutls_session_t mfem::GnuTLS_socketbuf::session
protected

Definition at line 159 of file socketstream.hpp.

bool mfem::GnuTLS_socketbuf::session_started
protected

Definition at line 160 of file socketstream.hpp.

GnuTLS_status mfem::GnuTLS_socketbuf::status
protected

Definition at line 158 of file socketstream.hpp.


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