Quantcast
Channel: Renesas Synergy Platform
Viewing all articles
Browse latest Browse all 23645

Forum Post: RE: Adding a webserver to a project.

$
0
0
Hello Matt, Semantic errors are Eclipse "feature" and have to do with how Synergy configurator works and how include paths are determined. Regardless of what compiler you use, you'll still observe them as the builder is external to the e2studio. IAR EW for Synergy should not have that problem. If rebuilding index does not help, Ctrl+click on one of the entries highlighted in red and it should take you to header/source file with the definition/prototype. Once that file has been opened, the errors should disappear in the previous file as newly recognized symbols are appended to the index. As for the default content and/or fancier "Not found" pages, NetX HTTP Server module gives you complete control over incoming packets. The functionality you describe is achievable using custom get request callback function (last argument passed into nx_http_server_create() is the function pointer) which is called instead of the internal function, that simply fetches requested resource. If the function returns NX_HTTP_CALLBACK_COMPLETED, then the request is closed immediately. If the return value is NX_SUCCESS (i.e. 0), then default function is called after custom user callback returns. This gives you chance to amend the name of the requested resource to desired value. Please have a look at the updated net_thread_entry file to see how it's implemented: (Please visit the site to view this file) (you'll have to change the extension as this forum doesn't allow .c files) Regards

Viewing all articles
Browse latest Browse all 23645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>