Adjusting the xtcp stack to use another interface
My idea was to adust only two things:
- the xtcp() function itsself handles event reactions (e.g. an ethernet packet being ready). I could simply replace the reaction to an ethernet event with a similar event for another interface
- data is processed within the uip stack, no need to change anything here (?)
- to send data, xcoredev_send() is used to send the uip-stacks buffer via ethernet. Again, I should be able to replace the ethernet interface with any other interface
Webserver/XTCP problems
- While testing the webserver over ethernet, i got the feeling it is a bit .. instable? or .. unreliable rather. I got my website split into multiple files (html, css, js). On trying to access the website, the html file is always loaded, but most of the time communication seems to hang when the css file is requested. Sometimes, the css is loaded fine. If I resend the css file request, the file is loaded just fine. Do I have to put everything into a single file (urgh) or does anyone have an idea on how to fix this?
- On requsting the CSS file again, the index.hmtl file is resent
- If the css file is loaded, it is not processed by the browser, as it is tagged as type/html instead of type/css (no problem when opening the local copy on the pc).
- Probably related to the index.html being resent instead of the css file
- Javascript is not executed, no matter if provided in an additional file or in the html file (both versions work when I open the local website on my pc).