📄 httpd.h
字号:
/******************************************************************
* httpd.h:
*
* Copyright (c) 2001 Atmel Corporation.
* All Rights Reserved.
*
* You are autorized to use, copy and distribute this software only at
* a single site (the term "site" meaning a single company location).
* This copyright notice must be included in any copy, modification
* or portion of this software merged into another program.
*
* This software is licenced solely for use with Atmel AVR micro
* controller family. The software may not be modified to execute on
* any other microcontroller architectures
*
* This software is provided "as is"; Without warranties either express
* or implied, including any warranty regarding merchantability,
* fitness for a particular purpose or noninfringement.
*
* In no event shall Atmel or its suppliers be liable for any special,
* indirect,incidential or concequential damages resulting from the
* use or inability to use this software.
*
* Revision history:
*
* January 17, 2001: Version 1.0 Created by JB
* July 13, 2001 Version 1.2 JB
* - Changed to IAR compiler V2.25
* - Renamed flash file functions to avoid conflict with
* standard file I/O names
* - Bug fixes in HTTP
* - Speed optimization in TCP
*
*
*******************************************************************/
#define TRUE 1
#define FALSE 0
/*buffer size*/
#define HTTP_BUFFER 300
#define HTTP_SEND_BUFFER 100
/*httpdInit must be called during startup to initialize the httpd*/
void httpdInit( void );
/*httpd must be polled in main*/
void httpd ( void );
/*sendHtml sends a html page, this function can be used in scripts to
send a generated page back to the user*/
void sendHtml(char * title, char * body, SOCKET * socket, unsigned char addHeader);
/*SendHtmlFlash, sends a HTML page whos body and title are stored in flash.
This function is used to send various status codes to the client browser,
like 404 Not Found*/
void SendHtmlFlash(char flash * statusLine,char flash * htmlTitle,char flash * htmlBody, SOCKET * socket, unsigned char addHeaders);
/*sendFile sends the http headers and adds the file to the
filelist, httpSend will then transmit the file*/
void sendFile(unsigned char addHeaders,FFILE * file,SOCKET *);
void httpSend(SOCKET *socket);
void httpPoll(SOCKET *socket);
char flash * mimeType(char *fileext);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -