Inherits AzNetworking::TimedThread.
|
using | ReceivedPackets = AZStd::fixed_vector< ReceivedPacket, MaxUdpReceivePacketCount > |
|
|
static constexpr uint32_t | MaxUdpReceivePacketCount = 1024 |
|
static constexpr uint32_t | MaxUdpReceiveBufferSize = MaxUdpReceivePacketCount * MaxUdpTransmissionUnit |
|
|
virtual void | OnStart ()=0 |
| Invoked on thread start.
|
|
virtual void | OnStop ()=0 |
| Invoked on thread stop.
|
|
virtual void | OnUpdate (AZ::TimeMs updateRateMs)=0 |
|
◆ GetReceivedPackets()
const ReceivedPackets * AzNetworking::UdpReaderThread::GetReceivedPackets |
( |
UdpSocket * |
socket | ) |
const |
Returns the set of all packets consumed off the socket during the last call to ReadDataFromSocket().
- Returns
- all packets consumed off the socket during the last call to ReadDataFromSocket()
◆ GetSocketCount()
uint32_t AzNetworking::UdpReaderThread::GetSocketCount |
( |
| ) |
const |
Returns the number of active sockets bound to this thread.
- Returns
- the number of active sockets bound to this thread
◆ GetUpdateTimeMs()
AZ::TimeMs AzNetworking::UdpReaderThread::GetUpdateTimeMs |
( |
| ) |
const |
Gets the total elapsed time spent updating the background thread in milliseconds
- Returns
- the total elapsed time spent updating the background thread in milliseconds
◆ RegisterSocket()
bool AzNetworking::UdpReaderThread::RegisterSocket |
( |
UdpSocket * |
socket | ) |
|
Adds the provided socket to the socket reader for processing.
- Parameters
-
socket | pointer to the UdpSocket to read incoming data from |
- Returns
- boolean true on success, false for failure
◆ UnregisterSocket()
void AzNetworking::UdpReaderThread::UnregisterSocket |
( |
UdpSocket * |
socket | ) |
|
Removes the provided socket from the socket reader for processing.
- Parameters
-
socket | pointer to the UdpSocket to read incoming data from |
The documentation for this class was generated from the following file:
- Code/Framework/AzNetworking/AzNetworking/UdpTransport/UdpReaderThread.h