Go to the source code of this file.
Functions | |
void * | HelloByeServer_init () |
Init a HelloBye server. More... | |
void * | HelloByeServer_process (void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount) |
Process a batch of packets. More... | |
void | HelloByeServer_getPkts (void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts) |
Get the packets to send and free. More... | |
void | HelloByeServer_free (void *obj) |
Free recources used by the state machine. More... | |
void * | HelloByeClient_init () |
Init a HelloBye client. More... | |
void | HelloByeClient_config (uint32_t srcIP, uint16_t dstPort) |
Configure the client. More... | |
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. More... | |
void | HelloByeClient_getPkts (void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts) |
Get the packets to send and free. More... | |
void * | HelloByeClient_process (void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount) |
Process a batch of packets. More... | |
void | HelloByeClient_free (void *obj) |
Free recources used by the state machine. More... | |
Function Documentation
◆ HelloByeClient_config()
void HelloByeClient_config | ( | uint32_t | srcIP, |
uint16_t | dstPort | ||
) |
Configure the client.
- Parameters
-
srcIP Source IP, will be the same for all connections, host byte order dstPort Destination port, will be the same for all connections, host byte order
Definition at line 79 of file helloBye_C.cpp.
◆ HelloByeClient_connect()
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.
- Parameters
-
obj object returned by HelloByeClient_init() inPkts incoming packets to process inCount number of incoming packets sendCount Number of packets in sendPkts freeCount Number of packets in freePkts dstIP IP of the listening server srcPort Port the client should use
- Returns
- void* to BufArray object (give to _getPkts() )
Definition at line 87 of file helloBye_C.cpp.
◆ HelloByeClient_free()
void HelloByeClient_free | ( | void * | obj | ) |
Free recources used by the state machine.
- Parameters
-
obj object returned by HelloByeClient_init()
Definition at line 145 of file helloBye_C.cpp.
◆ HelloByeClient_getPkts()
void HelloByeClient_getPkts | ( | void * | obj, |
struct rte_mbuf ** | sendPkts, | ||
struct rte_mbuf ** | freePkts | ||
) |
Get the packets to send and free.
- Parameters
-
obj object returned by HelloByeClient_process sendPkts Packets to send out (size if given in sendCount) freePkts Packets to free (size if given in freeCount)
Definition at line 118 of file helloBye_C.cpp.
◆ HelloByeClient_init()
void* HelloByeClient_init | ( | ) |
Init a HelloBye client.
- Returns
- void* to the object (opaque)
Definition at line 64 of file helloBye_C.cpp.
◆ HelloByeClient_process()
void* HelloByeClient_process | ( | void * | obj, |
struct rte_mbuf ** | inPkts, | ||
unsigned int | inCount, | ||
unsigned int * | sendCount, | ||
unsigned int * | freeCount | ||
) |
Process a batch of packets.
- Parameters
-
obj object returned by HelloByeClient_init() inPkts incoming packets to process inCount number of incoming packets sendCount Number of packets in sendPkts freeCount Number of packets in freePkts
- Returns
- void* to BufArray object (give to _getPkts() )
Definition at line 128 of file helloBye_C.cpp.
◆ HelloByeServer_free()
void HelloByeServer_free | ( | void * | obj | ) |
Free recources used by the state machine.
- Parameters
-
obj object returned by HelloByeServer_init()
Definition at line 56 of file helloBye_C.cpp.
◆ HelloByeServer_getPkts()
void HelloByeServer_getPkts | ( | void * | obj, |
struct rte_mbuf ** | sendPkts, | ||
struct rte_mbuf ** | freePkts | ||
) |
Get the packets to send and free.
- Parameters
-
obj object returned by HelloByeServer_process sendPkts Packets to send out (size if given in sendCount) freePkts Packets to free (size if given in freeCount)
Definition at line 46 of file helloBye_C.cpp.
◆ HelloByeServer_init()
void* HelloByeServer_init | ( | ) |
Init a HelloBye server.
- Returns
- void* to the object (opaque)
Definition at line 16 of file helloBye_C.cpp.
◆ HelloByeServer_process()
void* HelloByeServer_process | ( | void * | obj, |
struct rte_mbuf ** | inPkts, | ||
unsigned int | inCount, | ||
unsigned int * | sendCount, | ||
unsigned int * | freeCount | ||
) |
Process a batch of packets.
- Parameters
-
obj object returned by HelloByeServer_init() inPkts incoming packets to process inCount number of incoming packets sendCount Number of packets in sendPkts freeCount Number of packets in freePkts
Definition at line 32 of file helloBye_C.cpp.