Contiki-NG
Loading...
Searching...
No Matches

Transaction Management APIs for 6top Protocol (6P) More...

#include "sixp.h"
#include "sixp-pkt.h"

Go to the source code of this file.

Enumerations

enum  sixp_trans_state_t
 6P Transaction States (for internal use)
 
enum  sixp_trans_mode_t
 6P Transaction Modes (for internal use)
 

Functions

int sixp_trans_transit_state (sixp_trans_t *trans, sixp_trans_state_t new_state)
 Change the state of a specified transaction.
 
const sixtop_sf_tsixp_trans_get_sf (sixp_trans_t *trans)
 Return the scheduling function associated with a specified transaction.
 
sixp_pkt_cmd_t sixp_trans_get_cmd (sixp_trans_t *trans)
 Return the command associated with a specified transaction.
 
sixp_trans_state_t sixp_trans_get_state (sixp_trans_t *trans)
 Return the state of a specified transaction.
 
int16_t sixp_trans_get_seqno (sixp_trans_t *trans)
 Return the sequence number associated with a specified transaction.
 
sixp_trans_mode_t sixp_trans_get_mode (sixp_trans_t *trans)
 Return the mode, 2-step or 3-step, of a specified transaction.
 
const linkaddr_t * sixp_trans_get_peer_addr (sixp_trans_t *trans)
 Return the peer addr of a specified transaction.
 
void sixp_trans_invoke_callback (sixp_trans_t *trans, sixp_output_status_t status)
 Invoke the output callback of a specified transaction.
 
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.
 
sixp_trans_t * sixp_trans_alloc (const sixp_pkt_t *pkt, const linkaddr_t *peer_addr)
 Allocate a transaction.
 
void sixp_trans_terminate (sixp_trans_t *trans)
 Helper function to terminate a transaction.
 
void sixp_trans_abort (sixp_trans_t *trans)
 Helper function to abort a transaction immediately.
 
void sixp_trans_free (sixp_trans_t *trans)
 Free a transaction.
 
sixp_trans_t * sixp_trans_find (const linkaddr_t *peer_addr)
 Find a transaction.
 
int sixp_trans_init (void)
 Initialize Memory and List for 6P transactions This function removes and frees existing transactions.
 

Detailed Description

Transaction Management APIs for 6top Protocol (6P)

Author
Yasuyuki Tanaka yasuy.nosp@m.uki..nosp@m.tanak.nosp@m.a@in.nosp@m.f.eth.nosp@m.z.ch

Definition in file sixp-trans.h.