MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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.
 
virtual int close ()
 Close the current socket descriptor.
 
- 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.
 
int getsocketdescriptor ()
 Returns the attached socket descriptor.
 
bool is_open ()
 Returns true if the socket is open and has a valid socket descriptor. Otherwise returns false.
 
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

◆ GnuTLS_socketbuf()

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

Definition at line 179 of file socketstream.hpp.

◆ ~GnuTLS_socketbuf()

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

Definition at line 183 of file socketstream.hpp.

Member Function Documentation

◆ attach()

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 750 of file socketstream.cpp.

◆ close()

int mfem::GnuTLS_socketbuf::close ( )
virtual

Close the current socket descriptor.

Reimplemented from mfem::socketbuf.

Definition at line 779 of file socketstream.cpp.

◆ end_session()

void mfem::GnuTLS_socketbuf::end_session ( )
protected

Definition at line 719 of file socketstream.cpp.

◆ gnutls_good()

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

Definition at line 185 of file socketstream.hpp.

◆ handshake()

void mfem::GnuTLS_socketbuf::handshake ( )
protected

Definition at line 556 of file socketstream.cpp.

◆ open()

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 765 of file socketstream.cpp.

◆ start_session()

void mfem::GnuTLS_socketbuf::start_session ( )
protected

Definition at line 594 of file socketstream.cpp.

◆ sync()

int mfem::GnuTLS_socketbuf::sync ( )
protectedvirtual

Reimplemented from mfem::socketbuf.

Definition at line 792 of file socketstream.cpp.

◆ underflow()

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

Reimplemented from mfem::socketbuf.

Definition at line 819 of file socketstream.cpp.

◆ xsgetn()

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

Reimplemented from mfem::socketbuf.

Definition at line 856 of file socketstream.cpp.

◆ xsputn()

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

Reimplemented from mfem::socketbuf.

Definition at line 902 of file socketstream.cpp.

Member Data Documentation

◆ my_cred

gnutls_certificate_credentials_t mfem::GnuTLS_socketbuf::my_cred
protected

Definition at line 172 of file socketstream.hpp.

◆ params

const GnuTLS_session_params& mfem::GnuTLS_socketbuf::params
protected

Definition at line 171 of file socketstream.hpp.

◆ session

gnutls_session_t mfem::GnuTLS_socketbuf::session
protected

Definition at line 168 of file socketstream.hpp.

◆ session_started

bool mfem::GnuTLS_socketbuf::session_started
protected

Definition at line 169 of file socketstream.hpp.

◆ status

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: