Agora  1.2.0
Agora project
packet_txrx_client_sim.h
Go to the documentation of this file.
1 
7 #ifndef PACKETTXRX_CLIENT_SIM_H_
8 #define PACKETTXRX_CLIENT_SIM_H_
9 
10 #include "packet_txrx.h"
11 #include "radio_lib.h"
12 
23  public:
24  PacketTxRxClientSim(Config* const cfg, size_t core_offset,
27  moodycamel::ProducerToken** notify_producer_tokens,
28  moodycamel::ProducerToken** tx_producer_tokens,
29  Table<char>& rx_buffer, size_t packet_num_in_buffer,
30  Table<size_t>& frame_start, char* tx_buffer);
31  ~PacketTxRxClientSim() final;
32 
33  private:
34  bool CreateWorker(size_t tid, size_t interface_count, size_t interface_offset,
35  size_t* rx_frame_start, std::vector<RxPacket>& rx_memory,
36  std::byte* const tx_memory) final;
37 };
38 
39 #endif // PACKETTXRX_CLIENT_SIM_H_
AgoraTxRx
Definition: packet_txrx.h:18
PacketTxRx::cond_
std::condition_variable cond_
Definition: packet_txrx.h:90
fmt::v8::detail::byte
byte
Definition: core.h:388
PacketTxRx::mutex_
std::mutex mutex_
Owned by this class and shared with the workers.
Definition: packet_txrx.h:89
PacketTxRx::worker_threads_
std::vector< std::unique_ptr< TxRxWorker > > worker_threads_
Definition: packet_txrx.h:76
AgoraTxRx::kUserEquiptment
@ kUserEquiptment
Definition: packet_txrx.h:19
moodycamel::ProducerToken
Definition: concurrentqueue.h:630
AgoraTxRx::TxRxTypes
TxRxTypes
Definition: packet_txrx.h:19
PacketTxRx::tx_producer_tokens_
moodycamel::ProducerToken ** tx_producer_tokens_
Definition: packet_txrx.h:86
packet_txrx.h
Common definations for PacketTxRx. Including datapath functions for communicating with simulators.
PacketTxRx::cfg_
Config *const cfg_
Definition: packet_txrx.h:77
PacketTxRx::proceed_
std::atomic< bool > proceed_
Definition: packet_txrx.h:91
Table< char >
radio_lib.h
Declaration file for the RadioConfig class.
packet_txrx_client_sim.h
Common definations for PacketTxRxClient. Including datapath functions for communicating with the clie...
PacketTxRxClientSim::CreateWorker
bool CreateWorker(size_t tid, size_t interface_count, size_t interface_offset, size_t *rx_frame_start, std::vector< RxPacket > &rx_memory, std::byte *const tx_memory) final
Definition: packet_txrx_client_sim.cc:26
PacketTxRxClientSim
Implementations of this class provide packet I/O for Agora.
Definition: packet_txrx_client_sim.h:22
PacketTxRxClientSim::~PacketTxRxClientSim
~PacketTxRxClientSim() final
PacketTxRx
Implementations of this class provide packet I/O for Agora.
Definition: packet_txrx.h:34
moodycamel::ConcurrentQueue< EventData >
PacketTxRx::event_notify_q_
moodycamel::ConcurrentQueue< EventData > * event_notify_q_
Definition: packet_txrx.h:80
frame_start
frame_start
Definition: parse_dl_file.m:6
txrx_worker_client_sim.h
txrx worker thread definition. This is the simulator declaration for the userequiptment code
PacketTxRx::notify_producer_tokens_
moodycamel::ProducerToken ** notify_producer_tokens_
Definition: packet_txrx.h:84
Config
Definition: config.h:26
AGORA_LOG_INFO
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
PacketTxRx::core_offset_
const size_t core_offset_
Definition: packet_txrx.h:79
PacketTxRx::tx_pending_q_
moodycamel::ConcurrentQueue< EventData > * tx_pending_q_
Definition: packet_txrx.h:81
PacketTxRx::NumChannels
size_t NumChannels() const
Definition: packet_txrx.h:74
PacketTxRxClientSim::PacketTxRxClientSim
PacketTxRxClientSim(Config *const cfg, size_t core_offset, moodycamel::ConcurrentQueue< EventData > *event_notify_q, moodycamel::ConcurrentQueue< EventData > *tx_pending_q, moodycamel::ProducerToken **notify_producer_tokens, moodycamel::ProducerToken **tx_producer_tokens, Table< char > &rx_buffer, size_t packet_num_in_buffer, Table< size_t > &frame_start, char *tx_buffer)
Definition: packet_txrx_client_sim.cc:12