wrapper class for managing encrypted Tcp sockets.
More...
#include <TlsSocket.h>
Inherits AzNetworking::TcpSocket.
|
SSL_CTX * | m_sslContext |
|
SSL * | m_sslSocket |
|
TrustZone | m_trustZone |
|
SocketFd | m_socketFd |
|
wrapper class for managing encrypted Tcp sockets.
◆ TlsSocket()
AzNetworking::TlsSocket::TlsSocket |
( |
SocketFd |
socketFd, |
|
|
TrustZone |
trustZone |
|
) |
| |
Construct with an existing socket file descriptor.
- Parameters
-
socketFd | existing socket file descriptor, this TlsSocket instance will assume ownership |
trustZone | for encrypted connections, the level of trust we associate with this connection (internal or external) |
◆ CloneAndTakeOwnership()
TcpSocket * AzNetworking::TlsSocket::CloneAndTakeOwnership |
( |
| ) |
|
|
overridevirtual |
Creates a new socket instance, transferring all ownership from the current instance to the new instance.
- Returns
- new socket instance
Reimplemented from AzNetworking::TcpSocket.
◆ Close()
void AzNetworking::TlsSocket::Close |
( |
| ) |
|
|
overridevirtual |
◆ Connect()
bool AzNetworking::TlsSocket::Connect |
( |
const IpAddress & |
address, |
|
|
uint16_t |
localPort |
|
) |
| |
|
overridevirtual |
Opens the TCP socket and connects to the requested remote address.
- Parameters
-
address | the remote endpoint to connect to |
localPort | the local port to open a connection from, 0 binds to any available port |
- Returns
- boolean true on success
Reimplemented from AzNetworking::TcpSocket.
◆ IsEncrypted()
bool AzNetworking::TlsSocket::IsEncrypted |
( |
| ) |
const |
|
overridevirtual |
Returns true if this is an encrypted socket, false if not.
- Returns
- boolean true if this is an encrypted socket, false if not
Reimplemented from AzNetworking::TcpSocket.
◆ Listen()
bool AzNetworking::TlsSocket::Listen |
( |
uint16_t |
port | ) |
|
|
overridevirtual |
Opens the TCP socket and binds it in listen mode.
- Parameters
-
port | the port number to open the TCP socket and begin listening on, 0 will bind to any available port |
- Returns
- boolean true on success
Reimplemented from AzNetworking::TcpSocket.
The documentation for this class was generated from the following file:
- Code/Framework/AzNetworking/AzNetworking/TcpTransport/TlsSocket.h