Contiki-NG
|
Transaction Management for 6top Protocol (6P)More...
#include "contiki-lib.h"
#include "lib/assert.h"
#include "sixtop.h"
#include "sixtop-conf.h"
#include "sixp-nbr.h"
#include "sixp-trans.h"
#include "sys/log.h"
Go to the source code of this file.
Typedefs | |
typedef struct sixp_trans | sixp_trans_t |
6P Transaction Data Structure (for internal use) | |
Functions | |
void | sixp_trans_free (sixp_trans_t *trans) |
Free a transaction. More... | |
int | sixp_trans_transit_state (sixp_trans_t *trans, sixp_trans_state_t new_state) |
Change the state of a specified transaction. More... | |
const sixtop_sf_t * | sixp_trans_get_sf (sixp_trans_t *trans) |
Return the scheduling function associated with a specified transaction. More... | |
sixp_pkt_cmd_t | sixp_trans_get_cmd (sixp_trans_t *trans) |
Return the command associated with a specified transaction. More... | |
sixp_trans_state_t | sixp_trans_get_state (sixp_trans_t *trans) |
Return the state of a specified transaction. More... | |
int16_t | sixp_trans_get_seqno (sixp_trans_t *trans) |
Return the sequence number associated with a specified transaction. More... | |
sixp_trans_mode_t | sixp_trans_get_mode (sixp_trans_t *trans) |
Return the mode, 2-step or 3-step, of a specified transaction. More... | |
const linkaddr_t * | sixp_trans_get_peer_addr (sixp_trans_t *trans) |
Return the peer addr of a specified transaction. More... | |
void | sixp_trans_invoke_callback (sixp_trans_t *trans, sixp_output_status_t status) |
Invoke the output callback of a specified transaction. More... | |
void | sixp_trans_set_callback (sixp_trans_t *trans, sixp_sent_callback_t func, void *arg, uint16_t arg_len) |
Set an output callback to a specified transaction. More... | |
sixp_trans_t * | sixp_trans_alloc (const sixp_pkt_t *pkt, const linkaddr_t *peer_addr) |
Allocate a transaction. More... | |
sixp_trans_t * | sixp_trans_find (const linkaddr_t *peer_addr) |
Find a transaction. More... | |
void | sixp_trans_terminate (sixp_trans_t *trans) |
Helper function to terminate a transaction. More... | |
void | sixp_trans_abort (sixp_trans_t *trans) |
Helper function to abort a transaction immediately. More... | |
int | sixp_trans_init (void) |
Initialize Memory and List for 6P transactions This function removes and frees existing transactions. | |
Transaction Management for 6top Protocol (6P)
Definition in file sixp-trans.c.