wrapper class for managing encrypted Udp sockets. More...
#include <DtlsSocket.h>
Inherits AzNetworking::UdpSocket.
Public Member Functions | |
bool | IsEncrypted () const override |
DtlsEndpoint::ConnectResult | ConnectDtlsEndpoint (DtlsEndpoint &dtlsEndpoint, const IpAddress &address, UdpPacketEncodingBuffer &outDtlsData) const override |
DtlsEndpoint::ConnectResult | AcceptDtlsEndpoint (DtlsEndpoint &dtlsEndpoint, const IpAddress &address) const override |
bool | Open (uint16_t port, UdpSocket::CanAcceptConnections canAccept, TrustZone trustZone) override |
void | Close () override |
Closes an open socket. | |
Public Member Functions inherited from AzNetworking::UdpSocket | |
virtual bool | IsEncrypted () const |
virtual DtlsEndpoint::ConnectResult | ConnectDtlsEndpoint (DtlsEndpoint &dtlsEndpoint, const IpAddress &address, UdpPacketEncodingBuffer &outDtlsData) const |
virtual DtlsEndpoint::ConnectResult | AcceptDtlsEndpoint (DtlsEndpoint &dtlsEndpoint, const IpAddress &address) const |
virtual bool | Open (uint16_t port, CanAcceptConnections canAccept, TrustZone trustZone) |
virtual void | Close () |
Closes an open socket. | |
bool | IsOpen () const |
int32_t | Send (const IpAddress &address, const uint8_t *data, uint32_t size, bool encrypt, DtlsEndpoint &dtlsEndpoint, const ConnectionQuality &connectionQuality) const |
int32_t | Receive (IpAddress &outAddress, uint8_t *outData, uint32_t size) const |
SocketFd | GetSocketFd () const |
uint32_t | GetSentPackets () const |
uint32_t | GetSentBytes () const |
uint32_t | GetSentPacketsEncrypted () const |
uint32_t | GetSentBytesEncryptionInflation () const |
uint32_t | GetRecvPackets () const |
uint32_t | GetRecvBytes () const |
Friends | |
class | DtlsEndpoint |
Additional Inherited Members | |
Public Types inherited from AzNetworking::UdpSocket | |
enum class | CanAcceptConnections { False , True } |
Protected Attributes inherited from AzNetworking::UdpSocket | |
uint32_t | m_sentPacketsEncrypted = 0 |
uint32_t | m_sentBytesEncryptionInflation = 0 |
wrapper class for managing encrypted Udp sockets.
|
overridevirtual |
Accepts an encryption socket wrapper.
dtlsEndpoint | the encryption wrapper instance to create a connection over |
address | the IP address of the endpoint to connect to |
Reimplemented from AzNetworking::UdpSocket.
|
overridevirtual |
Closes an open socket.
Reimplemented from AzNetworking::UdpSocket.
|
overridevirtual |
Creates an encryption socket wrapper.
dtlsEndpoint | the encryption wrapper instance to create a connection over |
address | the IP address of the endpoint to connect to |
outDtlsData | data buffer to store the dtls handshake packet |
Reimplemented from AzNetworking::UdpSocket.
|
overridevirtual |
Returns true if this is an encrypted socket, false if not.
Reimplemented from AzNetworking::UdpSocket.
|
overridevirtual |
Opens the UDP socket on the given port.
port | the port number to open the UDP socket on, 0 will bind to any available port |
canAccept | if true, the socket will be opened in a way that allows accepting incoming connections |
trustZone | for encrypted connections, the level of trust we associate with this connection (internal or external) |
Reimplemented from AzNetworking::UdpSocket.