Go to the documentation of this file.
46 #ifndef CCXX_CONFIG_H_
50 #ifndef CCXX_THREAD_H_
54 #ifndef CCXX_SOCKET_H_
59 #include <gnutls/gnutls.h>
61 gnutls_session session;
62 gnutls_certificate_credentials xcred;
66 #include <openssl/ssl.h>
69 #ifdef CCXX_NAMESPACES
91 {
return (
bool)(
ssl != NULL);};
102 #ifdef CCXX_NAMESPACES
unsigned short tpport_t
Transport Protocol Ports.
Definition: address.h:86
SSLStream(const char *name, Family family=IPV4, unsigned mss=536, bool throwflag=false, timeout_t to=0)
This object is used to hold the actual and valid internet address of a specific host machine that wil...
Definition: address.h:562
unsigned long timeout_t
Definition: thread.h:74
Family family
Definition: socket.h:1644
This object is used to hold the actual and valid internet address of a specific host machine that wil...
Definition: address.h:949
Family
Definition: socket.h:122
SSL * ssl
Definition: ssl.h:76
@ IPV4
Definition: socket.h:126
ssize_t writeData(void *buf, size_t len, timeout_t to=0)
bool isSSL(void)
Definition: ssl.h:90
TCP streams are used to represent TCP client connections to a server by TCP protocol servers for acce...
Definition: socket.h:1632
SSLStream(const SSLStream &ssl)
SSLStream(const IPV4Host &host, tpport_t port, unsigned mss=536, bool throwflag=true, timeout_t to=0)
Network addresses and sockets related classes.
ssize_t readLine(char *str, size_t max, timeout_t to=0)
SSLStream(Family family=IPV4, bool throwflag=true, timeout_t to=0)
Synchronization and threading services.
SSLStream(const IPV6Host &host, tpport_t port, unsigned mss=536, bool throwflag=true, timeout_t to=0)
ssize_t readData(void *buf, size_t len, char separator=0, timeout_t to=0)