helloBye3MemPool.cpp
Go to the documentation of this file.
static constexpr StateID Terminate
Definition: helloBye3MemPool.hpp:131
Definition: helloBye3MemPool.hpp:13
StateMachine< Identifier< mbuf >, mbuf >::State createHello(uint32_t srcIp, uint32_t dstIp, uint16_t srcPort, uint16_t dstPort, uint64_t ident)
Definition: helloBye3MemPool.cpp:161
void HelloBye3MemPool_Client_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye3MemPool.cpp:442
void runBye(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:224
static constexpr StateID Bye
Definition: helloBye3MemPool.hpp:129
void runRecvBye(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:275
static constexpr StateID Bye
Definition: helloBye3MemPool.hpp:95
void runBye(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:102
void * HelloBye3MemPool_Server_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye3MemPool.cpp:353
uint32_t getFreeCount() const
Get the number of packets currently marked as free.
Definition: bufArray.hpp:166
static constexpr uint8_t MSG_HELLO
Definition: helloBye3MemPool.hpp:24
static constexpr StateID RecvBye
Definition: helloBye3MemPool.hpp:130
void HelloBye3MemPool_Client_free(void *obj)
Free recources used by the state machine.
Definition: helloBye3MemPool.cpp:466
void * HelloBye3MemPool_Client_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye3MemPool.cpp:452
void HelloBye3MemPool_Server_free(void *obj)
Free recources used by the state machine.
Definition: helloBye3MemPool.cpp:378
Definition: helloBye3MemPool.hpp:15
void runHello(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:38
static constexpr uint8_t ROLE_CLIENT
Definition: helloBye3MemPool.hpp:21
uint32_t getSendCount() const
Get the number of packets currently marked as send.
Definition: bufArray.hpp:151
void setPayloadLength(uint16_t length)
Set the length of the L4-SDU (UDP payload)
Definition: headers.hpp:243
static constexpr StateID Hello
Definition: helloBye3MemPool.hpp:94
static constexpr uint8_t ROLE_SERVER
Definition: helloBye3MemPool.hpp:22
static constexpr StateID Terminate
Definition: helloBye3MemPool.hpp:96
void getSendBufs(Packet **sendBufs) const
Get all the packets which are to be sent.
Definition: bufArray.hpp:175
void HelloBye3MemPool_Server_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye3MemPool.cpp:368
void getFreeBufs(Packet **freeBufs) const
Get all the packets which are to be freed.
Definition: bufArray.hpp:193
void * HelloBye3MemPool_Client_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount, uint32_t srcIP, uint32_t dstIP, uint16_t srcPort, uint16_t dstPort, uint64_t ident)
Open a connection to a server.
Definition: helloBye3MemPool.cpp:419
static constexpr StateID Hello
Definition: helloBye3MemPool.hpp:128
void * factory(Identifier< mbuf >::ConnectionID id)
Definition: helloBye3MemPool.cpp:27
void runHello(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:182