dtlsClient.hpp
Go to the documentation of this file.
void * DtlsClient_init(uint32_t dstIP, uint16_t dstPort, uint8_t srcMac[6], uint8_t dstMac[6])
Initialize a DTLS client.
Definition: dtlsClient.cpp:303
void configStateMachine(StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf > &sm)
Configure the state machine.
void DtlsClient_free(void *obj)
Free recources used by the state machine.
Definition: dtlsClient.cpp:369
SSL_CTX * createCTX()
Use this to create the SSL context for creaeteStateData()
Definition: dtlsClient.cpp:11
StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::State createStateData(SSL_CTX *ctx, uint32_t localIP, uint32_t remoteIP, uint16_t localPort, uint16_t remotePort, std::array< uint8_t, 6 > localMac, std::array< uint8_t, 6 > remoteMac)
Create the state of the client.
Definition: dtlsClient.cpp:55
void * DtlsClient_connect(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount, uint32_t srcIP, uint16_t srcPort)
Add one connection to the State Machine.
Definition: dtlsClient.cpp:320
void runHandshake(StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::State &state, mbuf *, StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::FunIface &funIface)
void sendData(StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::State &state, mbuf *, StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::FunIface &funIface)
void DtlsClient_getPkts(void *obj, struct rte_mbuf **sendPkts, struct rte_mbuf **freePkts)
Get the packets from an opaque structure.
Definition: dtlsClient.cpp:346
void * DtlsClient_process(void *obj, struct rte_mbuf **inPkts, unsigned int inCount, unsigned int *sendCount, unsigned int *freeCount)
Process incoming packets.
Definition: dtlsClient.cpp:355
Definition: dtlsClient.hpp:16
void runTeardown(StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::State &state, mbuf *, StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::FunIface &funIface)
Definition: dtlsClient.hpp:18
void initHandshake(StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::State &state, mbuf *, StateMachine< IPv4_5TupleL2Ident< mbuf >, mbuf >::FunIface &funIface)