helloBye2_C.cpp
Go to the documentation of this file.
StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf > * sm
Definition: dtlsClient.cpp:300
Definition: helloBye2Proto.hpp:80
static HelloBye2ClientConfig & getInstance()
Definition: helloBye2Proto.hpp:131
static constexpr StateID Terminate
Definition: helloBye2Proto.hpp:232
void runPktBatch(BufArray< Packet > &pktsIn)
Run a batch of packets.
Definition: stateMachine.hpp:692
void setSrcIP(uint32_t newIP)
Definition: helloBye2Proto.hpp:143
static constexpr StateID RecvBye
Definition: helloBye2Proto.hpp:231
static constexpr StateID Terminate
Definition: helloBye2Proto.hpp:159
uint32_t getFreeCount() const
Get the number of packets currently marked as free.
Definition: bufArray.hpp:166
void HelloBye2_Client_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye2_C.cpp:117
void HelloBye2_Client_config(uint32_t srcIP, uint16_t dstPort)
Configure the client.
Definition: helloBye2_C.cpp:83
void setDstPort(uint16_t newPort)
Definition: helloBye2Proto.hpp:144
void HelloBye2_Server_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets to send and free.
Definition: helloBye2_C.cpp:47
void * HelloBye2_Server_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye2_C.cpp:33
void * HelloBye2_Client_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process a batch of packets.
Definition: helloBye2_C.cpp:127
Definition: helloBye2Proto.hpp:34
uint32_t getSendCount() const
Get the number of packets currently marked as send.
Definition: bufArray.hpp:151
void addState(ConnectionID id, State st, BufArray< Packet > &pktsIn)
Open an outgoing connection.
Definition: stateMachine.hpp:652
Definition: helloBye2Proto.hpp:87
Definition: helloBye2Proto.hpp:81
void getSendBufs(Packet **sendBufs) const
Get all the packets which are to be sent.
Definition: bufArray.hpp:175
Definition: helloBye2Proto.hpp:86
void getFreeBufs(Packet **freeBufs) const
Get all the packets which are to be freed.
Definition: bufArray.hpp:193
void HelloBye2_Server_free(void *obj)
Free recources used by the state machine.
Definition: helloBye2_C.cpp:57
Definition: helloBye2Proto.hpp:85
void * factory(Identifier< mbuf >::ConnectionID id)
Definition: helloBye3.cpp:20
void HelloBye2_Client_free(void *obj)
Free recources used by the state machine.
Definition: helloBye2_C.cpp:144
void * HelloBye2_Client_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount, uint32_t dstIP, uint16_t srcPort, uint64_t ident)
Open a connection to a server.
Definition: helloBye2_C.cpp:91