📄 https_callbacks.i
字号:
#line 1 "..\http\https_callbacks.c" /0 #error *** WARNING C318 IN LINE 69 OF ..\http\https_callbacks.c: can't open file 'inet/datatypes.h' #error *** WARNING C318 IN LINE 70 OF ..\http\https_callbacks.c: can't open file 'inet/debug.h' #error *** WARNING C318 IN LINE 71 OF ..\http\https_callbacks.c: can't open file 'inet/globalvariables.h' #error *** WARNING C318 IN LINE 72 OF ..\http\https_callbacks.c: can't open file 'inet/system.h' #error *** WARNING C318 IN LINE 73 OF ..\http\https_callbacks.c: can't open file 'inet/http/http_server.h' const char https_not_found_page[] = "HTTP/1.0 200 OK\r\n Last-modified: Fri, 18 Oct 2002 12:04:32 GMT\r\n Server: ESERV-10/1.0\nContent-type: text/html\r\n Content-length: 400\r\n\r\n <HEAD><TITLE>Viola Systems Embedded WEB Server</TITLE></HEAD> <BODY> <H2>HTTP 1.0 404 Error. File Not Found</H2> The requested URL was not found on this server. <HR><BR><I>Viola Systems Embedded WEB Server 2.0, 2002<BR> Web Server for Embedded Applications</I><BR> <A HREF=http://www.violasystems.com> www.violasystems.com - Embedding The Internet</A> </BODY>"; INT16 https_findfile (UINT8 hash, UINT8 ses) { UINT8 file_not_found; file_not_found = 1; if( file_not_found ) { https[ses].fstart = 0xFFFFFFFF; https[ses].funacked = 0; https[ses].flen = strlen(&https_not_found_page[0], 1000); https[ses].fpoint = 0; return(-1); } return(1); } INT16 https_loadbuffer (UINT8 ses, UINT8* buf, UINT16 buflen) { UINT16 i; if( https[ses].fstart == 0xFFFFFFFF ) { kick_WD(); for(i=0; i < (https[ses].flen - https[ses].fpoint); i++) { if(i >= buflen) break; *buf++ = https_not_found_page[https[ses].fpoint + i]; } return(i); } for(i=0; i < (https[ses].flen - https[ses].fpoint); i++) { if(i >= buflen) break; kick_WD(); } return(i); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -