helloBye_C.cpp
Go to the documentation of this file.
void HelloByeServer_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye_C.cpp:46
void setDstPort(uint16_t newPort)
Definition: helloByeProto.hpp:65
void * HelloByeServer_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye_C.cpp:32
static constexpr StateID Terminate
Definition: helloByeProto.hpp:28
uint32_t getFreeCount() const
Get the number of packets currently marked as free.
Definition: bufArray.hpp:166
static void createInstance()
Definition: helloByeProto.hpp:67
Definition: helloByeProto.hpp:39
static HelloByeClientConfig * getInstance()
Definition: helloByeProto.hpp:74
Definition: helloByeProto.hpp:41
void HelloByeServer_free(void *obj)
Free recources used by the state machine.
Definition: helloBye_C.cpp:56
void * HelloByeClient_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount, uint32_t dstIP, uint16_t srcPort)
Open a connection to a server.
Definition: helloBye_C.cpp:87
uint32_t getSendCount() const
Get the number of packets currently marked as send.
Definition: bufArray.hpp:151
void HelloByeClient_free(void *obj)
Free recources used by the state machine.
Definition: helloBye_C.cpp:145
void getSendBufs(Packet **sendBufs) const
Get all the packets which are to be sent.
Definition: bufArray.hpp:175
void * HelloByeClient_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye_C.cpp:128
void getFreeBufs(Packet **freeBufs) const
Get all the packets which are to be freed.
Definition: bufArray.hpp:193
void HelloByeClient_config(uint32_t srcIP, uint16_t dstPort)
Configure the client.
Definition: helloBye_C.cpp:79
static constexpr StateID Terminate
Definition: helloByeProto.hpp:21
void HelloByeClient_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye_C.cpp:118
void setSrcIP(uint32_t newIP)
Definition: helloByeProto.hpp:64
void * factory(Identifier< mbuf >::ConnectionID id)
Definition: helloBye3.cpp:20