helloBye3MemPool.hpp
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
ConnectionID(uint64_t i)
Definition: helloBye3MemPool.hpp:51
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 HelloBye3MemPool_Server_free(void *obj)
Free recources used by the state machine.
Definition: helloBye3MemPool.cpp:378
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
bool operator==(const ConnectionID &c) const
Definition: helloBye3MemPool.hpp:42
static constexpr StateID RecvBye
Definition: helloBye3MemPool.hpp:130
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
ConnectionID()
Definition: helloBye3MemPool.hpp:50
uint64_t operator()(const ConnectionID &c) const
Definition: helloBye3MemPool.hpp:54
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
Definition: helloBye3MemPool.hpp:15
void runHello(StateMachine< Identifier< mbuf >, mbuf >::State &state, mbuf *pkt, StateMachine< Identifier< mbuf >, mbuf >::FunIface &funIface)
Definition: helloBye3MemPool.cpp:38
bool operator<(const ConnectionID &c) const
Definition: helloBye3MemPool.hpp:43
static constexpr StateID Hello
Definition: helloBye3MemPool.hpp:94
Definition: exceptions.hpp:7
static constexpr StateID Terminate
Definition: helloBye3MemPool.hpp:96
static ConnectionID identify(Packet *pkt)
Definition: helloBye3MemPool.hpp:56
void HelloBye3MemPool_Client_free(void *obj)
Free recources used by the state machine.
Definition: helloBye3MemPool.cpp:466
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
ConnectionID(const ConnectionID &c)
Definition: helloBye3MemPool.hpp:49
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 * 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
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