Microchip® Advanced Software Framework

websocket-http-client.h File Reference
#include "contiki-net.h"
#include "http-strings.h"

Data Structures

struct  websocket_http_client_state
 

Macros

#define WEBSOCKET_CONF_MAX_SUBPROTOLEN   30
 
#define WEBSOCKET_CONF_MAX_URLLEN   80
 
#define WEBSOCKET_HTTP_CLIENT_BUFSIZE   400
 

Functions

void websocket_http_client_aborted (struct websocket_http_client_state *s)
 
void websocket_http_client_appcall (void *state)
 
void websocket_http_client_close (struct websocket_http_client_state *s)
 
void websocket_http_client_closed (struct websocket_http_client_state *s)
 
void websocket_http_client_connected (struct websocket_http_client_state *s)
 
void websocket_http_client_datahandler (struct websocket_http_client_state *s, uint8_t *data, uint16_t len)
 
char * websocket_http_client_filename (struct websocket_http_client_state *s)
 
unsigned char websocket_http_client_get (struct websocket_http_client_state *s, const char *host, uint16_t port, const char *file, const char *subprotocol)
 
char * websocket_http_client_hostname (struct websocket_http_client_state *s)
 
void websocket_http_client_init (void)
 
char * websocket_http_client_mimetype (struct websocket_http_client_state *s)
 
unsigned short websocket_http_client_port (struct websocket_http_client_state *s)
 
uint16_t websocket_http_client_send (struct websocket_http_client_state *s, const uint8_t *data, uint16_t datalen)
 
uint16_t websocket_http_client_sendbuflen (struct websocket_http_client_state *s)
 
void websocket_http_client_timedout (struct websocket_http_client_state *s)
 

#define WEBSOCKET_CONF_MAX_SUBPROTOLEN   30

Referenced by websocket_open().

#define WEBSOCKET_CONF_MAX_URLLEN   80
#define WEBSOCKET_HTTP_CLIENT_BUFSIZE   400

void websocket_http_client_aborted ( struct websocket_http_client_state s)
void websocket_http_client_closed ( struct websocket_http_client_state s)
void websocket_http_client_connected ( struct websocket_http_client_state s)
char* websocket_http_client_filename ( struct websocket_http_client_state s)
char* websocket_http_client_hostname ( struct websocket_http_client_state s)
void websocket_http_client_init ( void  )
char* websocket_http_client_mimetype ( struct websocket_http_client_state s)
unsigned short websocket_http_client_port ( struct websocket_http_client_state s)
uint16_t websocket_http_client_send ( struct websocket_http_client_state s,
const uint8_t *  data,
uint16_t  datalen 
)
uint16_t websocket_http_client_sendbuflen ( struct websocket_http_client_state s)
void websocket_http_client_timedout ( struct websocket_http_client_state s)