Go to the source code of this file.
Functions | |
void * | HelloBye2_Server_init () |
Init a HelloBye server. More... | |
void * | HelloBye2_Server_process (void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount) |
Process a batch of packets. More... | |
void | HelloBye2_Server_getPkts (void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts) |
Get the packets to send and free. More... | |
void | HelloBye2_Server_free (void *obj) |
Free recources used by the state machine. More... | |
void * | HelloBye2_Client_init () |
Init a HelloBye client. More... | |
void | HelloBye2_Client_config (uint32_t srcIP, uint16_t dstPort) |
Configure the client. More... | |
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. More... | |
void | HelloBye2_Client_getPkts (void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts) |
Get the packets to send and free. More... | |
void * | HelloBye2_Client_process (void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount) |
Process a batch of packets. More... | |
void | HelloBye2_Client_free (void *obj) |
Free recources used by the state machine. More... | |
Function Documentation
◆ HelloBye2_Client_config()
void HelloBye2_Client_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 83 of file helloBye2_C.cpp.
◆ HelloBye2_Client_connect()
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.
- 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 ident Identiry of the connection
- Returns
- void* to BufArray object (give to _getPkts() )
Definition at line 91 of file helloBye2_C.cpp.
◆ HelloBye2_Client_free()
void HelloBye2_Client_free | ( | void * | obj | ) |
Free recources used by the state machine.
- Parameters
-
obj object returned by HelloByeClient_init()
Definition at line 144 of file helloBye2_C.cpp.
◆ HelloBye2_Client_getPkts()
void HelloBye2_Client_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 117 of file helloBye2_C.cpp.
◆ HelloBye2_Client_init()
void* HelloBye2_Client_init | ( | ) |
Init a HelloBye client.
- Returns
- void* to the object (opaque)
Definition at line 65 of file helloBye2_C.cpp.
◆ HelloBye2_Client_process()
void* HelloBye2_Client_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 127 of file helloBye2_C.cpp.
◆ HelloBye2_Server_free()
void HelloBye2_Server_free | ( | void * | obj | ) |
Free recources used by the state machine.
- Parameters
-
obj object returned by HelloByeServer_init()
Definition at line 57 of file helloBye2_C.cpp.
◆ HelloBye2_Server_getPkts()
void HelloBye2_Server_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 47 of file helloBye2_C.cpp.
◆ HelloBye2_Server_init()
void* HelloBye2_Server_init | ( | ) |
Init a HelloBye server.
- Returns
- void* to the object (opaque)
Definition at line 15 of file helloBye2_C.cpp.
◆ HelloBye2_Server_process()
void* HelloBye2_Server_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 33 of file helloBye2_C.cpp.