fsm.h

TCP finite state maschine declarations.

enum fsm_state_t
FSM_STATE_CLOSED = 0
FSM_STATE_LISTEN
FSM_STATE_SYN_SENT
FSM_STATE_SYN_RCVD
FSM_STATE_ESTABLISHED
FSM_STATE_CLOSE_WAIT
FSM_STATE_LAST_ACK
FSM_STATE_FIN_WAIT_1
FSM_STATE_FIN_WAIT_2
FSM_STATE_CLOSING
FSM_STATE_TIME_WAIT
enum fsm_event_t
FSM_EVENT_CALL_OPEN
FSM_EVENT_CALL_SEND
FSM_EVENT_CALL_RECV
FSM_EVENT_CALL_CLOSE
FSM_EVENT_CALL_ABORT
FSM_EVENT_RCVD_PKT
FSM_EVENT_TIMEOUT_TIMEWAIT
FSM_EVENT_TIMEOUT_RETRANSMIT
FSM_EVENT_TIMEOUT_CONNECTION
FSM_EVENT_SEND_PROBE
FSM_EVENT_CLEAR_RETRANSMIT
int _fsm(tcb.h::gnrc_tcp_tcb_t * tcb, fsm.h::fsm_event_t event, include/net/gnrc/pkt.h::gnrc_pktsnip_t * in_pkt, void * buf, msp430_types.h::size_t len)

TCP finite state maschine.

Parameters

tcb:TCB holding the connection information.
event:Current event that triggers FSM transition.
in_pkt:Incomming packet. Only not NULL in case of event RCVD_PKT.
buf:Buffer for send and receive functions.
len:Number of bytes to send or receive.

Return values

  • Zero on success Positive Number, number of bytes sent from or copied into buf. -ENOSYS if event is not implemented