Transport Namespace Reference

Classes

class  TheConfig
 parameters controlling outgoing connection More...
 

Functions

bool Connect ()
 locate and connect to the configured server More...
 
void CloseConnection ()
 close the current connection More...
 
void InitTls ()
 Initialize TLS library environment when necessary. More...
 
bool MaybeStartTls (const char *hostname)
 
void ShutdownTls ()
 De-initialize TLS library environment when necessary. More...
 
ssize_t Write (const void *buf, size_t len)
 
ssize_t Read (void *buf, size_t len)
 

Variables

TheConfig Config
 

Function Documentation

◆ CloseConnection()

void Transport::CloseConnection ( )

Definition at line 285 of file Transport.cc.

References conn.

Referenced by main().

◆ Connect()

bool Transport::Connect ( )

◆ InitTls()

◆ MaybeStartTls()

bool Transport::MaybeStartTls ( const char *  hostname)

perform TLS handshake on the currently open connection if TLS library has been initialized. return false on errors, true otherwise even if TLS not performed.

Definition at line 488 of file Transport.cc.

References Config, Transport::TheConfig::session, Transport::TheConfig::tlsEnabled, tryTlsAnonymous(), and tryTlsCertificate().

Referenced by Connect().

◆ Read()

ssize_t Transport::Read ( void *  buf,
size_t  len 
)

read up to len bytes from the currently open connection.

Returns
the number of bytes read, or -1 on errors

Definition at line 262 of file Transport.cc.

References Config, conn, Transport::TheConfig::ioTimeout, Transport::TheConfig::session, and Transport::TheConfig::tlsEnabled.

Referenced by main().

◆ ShutdownTls()

◆ Write()

ssize_t Transport::Write ( const void *  buf,
size_t  len 
)

write len bytes to the currently open connection.

Returns
the number of bytes written, or -1 on errors

Definition at line 238 of file Transport.cc.

References Config, conn, Transport::TheConfig::ioTimeout, Transport::TheConfig::session, and Transport::TheConfig::tlsEnabled.

Referenced by main().

Variable Documentation

◆ Config

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors