Definition at line 102 of file securesocket.h.
◆ ~SecureSocket()
| SecureSocket::~SecureSocket |
( |
| ) |
|
|
virtual |
◆ SecureSocket()
| SecureSocket::SecureSocket |
( |
void * | ssl | ) |
|
|
private |
◆ BlockingRead()
| size_t SecureSocket::BlockingRead |
( |
void * | buf, |
|
|
size_t | n ) |
|
virtual |
Read data or block.
- Parameters
-
| buf | the pointer to write data |
| n | read at most n bytes |
- Returns
- the number of received byte
Reimplemented from NSROOT::TcpSocket.
Definition at line 517 of file securesocket.cpp.
◆ Connect()
| bool SecureSocket::Connect |
( |
const char * | server, |
|
|
unsigned | port, |
|
|
int | rcvbuf ) |
|
virtual |
Try to connect the socket to an address name, port.
- Parameters
-
| server | the destination address name |
| port | the destination port |
| rcvbuf | the size of read buffer, else 0 for SOCKET_RCVBUF_MINSIZE |
- Returns
- true on success, else false
Reimplemented from NSROOT::TcpSocket.
Definition at line 502 of file securesocket.cpp.
◆ Disconnect()
| void SecureSocket::Disconnect |
( |
| ) |
|
|
virtual |
◆ GetSSLError()
| const char * SecureSocket::GetSSLError |
( |
| ) |
|
◆ IsCertificateValid()
| bool SecureSocket::IsCertificateValid |
( |
std::string & | info | ) |
|
◆ ReceiveData()
| size_t SecureSocket::ReceiveData |
( |
void * | buf, |
|
|
size_t | n ) |
|
virtual |
Read data from the socket.
- Parameters
-
| buf | the pointer to write received data |
| n | the number of byte to read |
- Returns
- the number of received byte
Reimplemented from NSROOT::TcpSocket.
Definition at line 510 of file securesocket.cpp.
◆ SendData()
| bool SecureSocket::SendData |
( |
const char * | buf, |
|
|
size_t | size ) |
|
virtual |
Send data into the socket.
- Parameters
-
| buf | the pointer to data |
| size | the number of byte to send |
- Returns
- true when succeeded, else false
Reimplemented from NSROOT::TcpSocket.
Definition at line 524 of file securesocket.cpp.
◆ SSLServerContext
| friend class SSLServerContext |
|
friend |
◆ SSLSessionFactory
| friend class SSLSessionFactory |
|
friend |
◆ m_cert
| void* NSROOT::SecureSocket::m_cert |
|
private |
◆ m_connected
| bool NSROOT::SecureSocket::m_connected |
|
private |
◆ m_errmsg
| char* NSROOT::SecureSocket::m_errmsg |
|
private |
◆ m_ssl
| void* NSROOT::SecureSocket::m_ssl |
|
private |
◆ m_ssl_error
| int NSROOT::SecureSocket::m_ssl_error |
|
private |
The documentation for this class was generated from the following files: