URL
https://opencores.org/ocsvn/mlite/mlite/trunk
Subversion Repositories mlite
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 160 to Rev 161
- ↔ Reverse comparison
Rev 160 → Rev 161
/trunk/kernel/http.c
94,12 → 94,12
} |
} |
#endif |
if(length != -1) |
if(length != HTML_LENGTH_LIST_END) |
{ |
if(length == -2) |
if(length == HTML_LENGTH_CALLBACK) |
{ |
IPFuncPtr funcPtr = (IPFuncPtr)page; |
funcPtr(socket, buf); |
funcPtr(socket, buf, bytes); |
return; |
} |
if(length == 0) |
145,11 → 145,11
|
#if 0 |
//Example test code |
static void MyProg(IPSocket *socket, char *request) |
static void MyProg(IPSocket *socket, char *request, int bytes) |
{ |
char *text="HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" |
"<html><body>Hello World!</body></html>"; |
(void)request; |
(void)request; (void)bytes; |
IPWrite(socket, text, (int)strlen(text)); |
IPClose(socket); |
} |