-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipackets webserver modification #93
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added support for multi packets so you can send more than one packet of asked webpage has worked for an 240 mega byte file transfer wihout packet lost speed about 100kbyte / seconds
added new functions (in tcpip.cpp httpServerReply_with_flags() to told the navigator if it is or not the last packet httpServerReplyAck () reply to the navigator an ACK (2. part of three way handshaking)
Exemple number one Send to the navigator a webpage contained in five packets (page a b c d e)
exemple one send a webpage composed of five packets with 900 bytes buffer, you could have 840 * 5 byte page (five packets is only for exemple you can send more packets there is no limitations)
exemple two all the web data are on the SD card tinyfat library don't support folders so all files are in root .hea are headers files if you ask an .htm file , arduino will send htm.hea witch contain HTTP/1.0 200 OK\r\n Content-Type: text/html\r\n Server: Arduino ethercard fred mod\r\n \r\n an then the requested file if you type http://192.168.0.66/test.htm you will see the test.htm page on the root of your SD card the sd library use only 8+3 files don't ark .html files you will become not found.. you can store .js files with correct js.hea change only the mime type (google it to find) you can specify in header files more options Cache (for pictures) so you dont have to reload it every time the default header is txt.hea HTTP/1.0 200 OK\r\n Content-Type: text/plain\r\n Server: Arduino ethercard fred mod\r\n \r\n i have added a server name for exemple but it's not needed
sorry it was code for another test will be come soon : SSDP protocol
reduce ram used it was 80 for SD library while could contain directories but tinyfat doesn't support directories !
i know i must really read my code :-) anothers experiments before brigning this thing working ....
erased unneded code
more sram free
jcw
added a commit
that referenced
this pull request
Jul 22, 2013
Multipackets webserver modification
Thanks - committed. I haven't tried this, but am assuming your changes will not affect the existing uses of the EtherCard library too much. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
issue #68 and issue #94
modification proposition
exemples multipacket , multipacketSD (need tinyfat library) , SSDP
sorry for my english , i'm french