38 #include "contiki-net.h"
44 struct psock sin, sout;
45 struct pt outputpt, scriptpt;
49 struct httpd_fs_file file;
59 #define HTTPD_STRING_TYPE PROGMEM_TYPE
60 #define PROGMEM_TYPE 1
63 #if HTTPD_STRING_TYPE==PROGMEM_TYPE
64 #define HTTPD_STRING_ATTR PROGMEM
66 #define httpd_memcpy memcpy_P
67 #define httpd_strcpy strcpy_P
68 #define httpd_strcmp strcmp_P
69 #define httpd_strncmp strncmp_P
70 #define httpd_strlen strlen_P
71 #define httpd_snprintf snprintf_P
72 #elif HTTPD_STRING_TYPE==EEPROM_TYPE
73 #define HTTPD_STRING_ATTR EEPROM
75 #define httpd_memcpy memcpy_E
76 #define httpd_strcpy strcpy_E
77 #define httpd_strcmp strcmp_E
78 #define httpd_strncmp strncmp_E
79 #define httpd_strlen strlen_E
80 #define httpd_snprintf snprintf_E
82 #define httpd_memcpy memcpy
83 #define httpd_strcpy strcpy
84 #define httpd_strcmp strcmp
85 #define httpd_strncmp strncmp
86 #define httpd_strlen strlen
87 #define httpd_snprintf snprintf
90 void httpd_init(
void);
91 void httpd_appcall(
void *state);
PETSCII/ASCII conversion functions.
The representation of a protosocket.