Open 3D Engine AzNetworking API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
wrapper class for managing encrypted Tcp sockets. More...
#include <TlsSocket.h>
Inherits AzNetworking::TcpSocket.
Public Member Functions | |
TlsSocket (TrustZone trustZone) | |
TlsSocket (SocketFd socketFd, TrustZone trustZone) | |
bool | IsEncrypted () const override |
TcpSocket * | CloneAndTakeOwnership () override |
bool | Listen (uint16_t port) override |
bool | Connect (const IpAddress &address, uint16_t localPort) override |
void | Close () override |
Closes an open socket. | |
Public Member Functions inherited from AzNetworking::TcpSocket | |
TcpSocket (SocketFd socketFd) | |
bool | IsOpen () const |
void | SetSocketFd (SocketFd socketFd) |
SocketFd | GetSocketFd () const |
int32_t | Send (const uint8_t *data, uint32_t size) const |
int32_t | Receive (uint8_t *outData, uint32_t size) const |
Protected Attributes | |
SSL_CTX * | m_sslContext |
SSL * | m_sslSocket |
TrustZone | m_trustZone |
Protected Attributes inherited from AzNetworking::TcpSocket | |
SocketFd | m_socketFd |
wrapper class for managing encrypted Tcp sockets.
AzNetworking::TlsSocket::TlsSocket | ( | SocketFd | socketFd, |
TrustZone | trustZone | ||
) |
Construct with an existing socket file descriptor.
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) |
|
overridevirtual |
Creates a new socket instance, transferring all ownership from the current instance to the new instance.
Reimplemented from AzNetworking::TcpSocket.
|
overridevirtual |
Opens the TCP socket and connects to the requested remote address.
address | the remote endpoint to connect to |
localPort | the local port to open a connection from, 0 binds to any available port |
Reimplemented from AzNetworking::TcpSocket.
|
overridevirtual |
Returns true if this is an encrypted socket, false if not.
Reimplemented from AzNetworking::TcpSocket.
|
overridevirtual |
Opens the TCP socket and binds it in listen mode.
port | the port number to open the TCP socket and begin listening on, 0 will bind to any available port |
Reimplemented from AzNetworking::TcpSocket.