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 80 void disconnect(
void);
91 {
return (
bool)(ssl != NULL);};
93 bool getSession(
void);
97 ssize_t readLine(
char *str,
size_t max,
timeout_t to = 0);
98 ssize_t readData(
void *buf,
size_t len,
char separator = 0,
timeout_t to = 0);
99 ssize_t writeData(
void *buf,
size_t len,
timeout_t to = 0);
102 #ifdef CCXX_NAMESPACES
Family
Definition: socket.h:122
unsigned long timeout_t
Definition: thread.h:74
Synchronization and threading services.
TCP streams are used to represent TCP client connections to a server by TCP protocol servers for acce...
Definition: socket.h:1631
bool isSSL(void)
Definition: ssl.h:90
This object is used to hold the actual and valid internet address of a specific host machine that wil...
Definition: address.h:561
SSL * ssl
Definition: ssl.h:76
Network addresses and sockets related classes.
unsigned short tpport_t
Transport Protocol Ports.
Definition: address.h:86
This object is used to hold the actual and valid internet address of a specific host machine that wil...
Definition: address.h:948