OpenWSN Firmware
opentcp.c File Reference
#include "openwsn.h"
#include "opentcp.h"
#include "openserial.h"
#include "openqueue.h"
#include "forwarding.h"
#include "packetfunctions.h"
#include "bsp_timer.h"
#include "scheduler.h"
#include "opentimers.h"
#include "ohlone.h"
#include "tcpecho.h"
#include "tcpinject.h"
#include "tcpprint.h"

Functions

void prependTCPHeader (OpenQueueEntry_t *msg, bool ack, bool push, bool rst, bool syn, bool fin)
 
bool containsControlBits (OpenQueueEntry_t *msg, uint8_t ack, uint8_t rst, uint8_t syn, uint8_t fin)
 
void tcp_change_state (uint8_t new_state)
 
void opentcp_reset (void)
 
void opentcp_timer_cb (void)
 
void opentcp_init ()
 
owerror_t opentcp_connect (open_addr_t *dest, uint16_t param_tcp_hisPort, uint16_t param_tcp_myPort)
 
owerror_t opentcp_send (OpenQueueEntry_t *msg)
 
void opentcp_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 
void opentcp_receive (OpenQueueEntry_t *msg)
 
owerror_t opentcp_close ()
 
bool tcp_debugPrint (void)
 
void timers_tcp_fired (void)
 

Variables

tcp_vars_t tcp_vars
 

Function Documentation

bool containsControlBits ( OpenQueueEntry_t msg,
uint8_t  ack,
uint8_t  rst,
uint8_t  syn,
uint8_t  fin 
)
void opentcp_reset ( void  )
void opentcp_timer_cb ( void  )
void prependTCPHeader ( OpenQueueEntry_t msg,
bool  ack,
bool  push,
bool  rst,
bool  syn,
bool  fin 
)
void tcp_change_state ( uint8_t  new_state)
bool tcp_debugPrint ( void  )
void timers_tcp_fired ( void  )

Variable Documentation

tcp_vars_t tcp_vars