helloBye_C.hpp
Go to the documentation of this file.
1 #ifndef HELLOBYE_C
2 #define HELLOBYE_C
3 
4 #include "helloByeProto.hpp"
5 
6 #include <rte_mbuf.h>
7 
8 extern "C" {
9 
10 /*
11  * XXX -------------------------------------------- XXX
12  * Server
13  * XXX -------------------------------------------- XXX
14  */
15 
20 void *HelloByeServer_init();
21 
30 void *HelloByeServer_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount,
31  unsigned int *sendCount, unsigned int *freeCount);
32 
40  void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts);
41 
46 void HelloByeServer_free(void *obj);
47 
48 /*
49  * XXX -------------------------------------------- XXX
50  * Client
51  * XXX -------------------------------------------- XXX
52  */
53 
58 void *HelloByeClient_init();
59 
65 void HelloByeClient_config(uint32_t srcIP, uint16_t dstPort);
66 
78 void *HelloByeClient_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount,
79  unsigned int *sendCount, unsigned int *freeCount, uint32_t dstIP, uint16_t srcPort);
80 
88  void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts);
89 
99 void *HelloByeClient_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount,
100  unsigned int *sendCount, unsigned int *freeCount);
101 
106 void HelloByeClient_free(void *obj);
107 };
108 
109 #endif /* HELLOBYE_C */
void HelloByeClient_config(uint32_t srcIP, uint16_t dstPort)
Configure the client.
Definition: helloBye_C.cpp:79
void HelloByeClient_free(void *obj)
Free recources used by the state machine.
Definition: helloBye_C.cpp:145
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 HelloByeServer_free(void *obj)
Free recources used by the state machine.
Definition: helloBye_C.cpp:56
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 * HelloByeServer_init()
Init a HelloBye server.
Definition: helloBye_C.cpp:16
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
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 * HelloByeClient_init()
Init a HelloBye client.
Definition: helloBye_C.cpp:64
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