tnt::GnuTlsServer Class Reference

#include <tnt/gnutls.h>

Inheritance diagram for tnt::GnuTlsServer:
cxxtools::net::TcpServer cxxtools::Selectable cxxtools::NonCopyable

Public Member Functions

 GnuTlsServer (const char *certificateFile, const char *privateKeyFile)
gnutls_certificate_credentials getCred () const
- Public Member Functions inherited from cxxtools::net::TcpServer
 TcpServer ()
 TcpServer (const std::string &ipaddr, unsigned short int port, int backlog=5, unsigned flags=0)
 Creates a server socket and listens on an address.
 ~TcpServer ()
void listen (const std::string &ipaddr, unsigned short int port, int backlog=5, unsigned flags=0)
virtual SelectableImpl & simpl ()
void terminateAccept ()
 Stops a blocking accept The stopAccept method can be called from a thread to break a blocking accept call in another thread.
TcpServerImpl & impl () const
- Public Member Functions inherited from cxxtools::Selectable
virtual ~Selectable ()
 Destructor.
void setSelector (SelectorBase *parent)
SelectorBaseselector ()
const SelectorBaseselector () const
void close ()
 Closes the I/O device.
bool wait (std::size_t msecs=WaitInfinite)
bool enabled () const
 Test if the I/O device object is enabled.
bool idle () const
bool busy () const
bool avail () const

Additional Inherited Members

- Public Types inherited from cxxtools::net::TcpServer
enum  { INHERIT = 1, DEFER_ACCEPT = 2 }
- Public Attributes inherited from cxxtools::net::TcpServer
Signal< TcpServer & > connectionPending
- Static Public Attributes inherited from cxxtools::Selectable
static const std::size_t WaitInfinite = Selector::WaitInfinite
- Protected Member Functions inherited from cxxtools::net::TcpServer
virtual void onClose ()
 Closes the Selector.
virtual bool onWait (std::size_t msecs)
virtual void onAttach (SelectorBase &)
virtual void onDetach (SelectorBase &)

Constructor & Destructor Documentation

tnt::GnuTlsServer::GnuTlsServer ( const char *  certificateFile,
const char *  privateKeyFile 
)

Member Function Documentation

gnutls_certificate_credentials tnt::GnuTlsServer::getCred ( ) const
inline

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