helloBye_C.hpp File Reference
#include "helloByeProto.hpp"
#include <rte_mbuf.h>
Include dependency graph for helloBye_C.hpp:
This graph shows which files directly or indirectly include this file:

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
srcIPSource IP, will be the same for all connections, host byte order
dstPortDestination port, will be the same for all connections, host byte order

Definition at line 79 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ 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
objobject returned by HelloByeClient_init()
inPktsincoming packets to process
inCountnumber of incoming packets
sendCountNumber of packets in sendPkts
freeCountNumber of packets in freePkts
dstIPIP of the listening server
srcPortPort the client should use
Returns
void* to BufArray object (give to _getPkts() )

Definition at line 87 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ HelloByeClient_free()

void HelloByeClient_free ( void *  obj)

Free recources used by the state machine.

Parameters
objobject 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
objobject returned by HelloByeClient_process
sendPktsPackets to send out (size if given in sendCount)
freePktsPackets to free (size if given in freeCount)

Definition at line 118 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ 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
objobject returned by HelloByeClient_init()
inPktsincoming packets to process
inCountnumber of incoming packets
sendCountNumber of packets in sendPkts
freeCountNumber of packets in freePkts
Returns
void* to BufArray object (give to _getPkts() )

Definition at line 128 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ HelloByeServer_free()

void HelloByeServer_free ( void *  obj)

Free recources used by the state machine.

Parameters
objobject 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
objobject returned by HelloByeServer_process
sendPktsPackets to send out (size if given in sendCount)
freePktsPackets to free (size if given in freeCount)

Definition at line 46 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ HelloByeServer_init()

void* HelloByeServer_init ( )

Init a HelloBye server.

Returns
void* to the object (opaque)

Definition at line 16 of file helloBye_C.cpp.

Here is the call graph for this function:

◆ 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
objobject returned by HelloByeServer_init()
inPktsincoming packets to process
inCountnumber of incoming packets
sendCountNumber of packets in sendPkts
freeCountNumber of packets in freePkts

Definition at line 32 of file helloBye_C.cpp.

Here is the call graph for this function: