Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.00.00

This section discusses the modules available for μC/HTTPsHTTP-server, and how they all fit together. A Windows®-based development platform is assumed. The directories and files make references to typical Windows-type directory structures. However, since μC/HTTPs HTTP-server is available in source form, it can also be used with any ANSI-C compatible compiler/linker and any Operating System.

Below is a summary of all directories and files involved in the µC/HTTPs HTTP-server module. The ‘<-Cfg’ on the far right indicates that these files are typically copied into the application (i.e., project) directory and edited based on project requirements.

 

Code Block
\Micrium
    \Software
        \uC-HTTPs-HTTP
			\Common
				http.c
				http.h
			\Server
				\Add-on
					\Auth
						http-s_auth.c
						http-s_auth.h
					\CtrlLayer
						http-s_ctrl_layer_mem.c
						http-s_ctrl_layer_mem.h
						http-s_ctrl_layer_rest_cfg.c
						http-s_ctrl_layer_rest_cfg.h
						http-s_ctrl_layer.c
						http-s_ctrl_layer.h
					\REST
						http-s_rest_mem.c
						http-s_rest_mem.h
                        http-s_rest_hook_cfg.c
	                    http_s_rest_hook_cfg.h
                        http-s_rest.c
						http-s_rest.h
				\Cfg
                	\Template
                    \	http-s_cfg.h                     <-Cfg
                    \	http-s_instance_cfg.c            <-Cfg
                    \	http-s_instance_cfg.h            <-Cfg
            	\Examples
				\Init	\Common
                        \HTML
                        \StaticFiles
                    \Basic
						app_basic_http-s_hooks.c
					\	app_basic_http-s_initinstance_cfg.c
						\app_basic_http-s_init_fs_static
instance_cfg.h
						app_basic.c
						app_basic.h
					\Login
CtrlLayer
						app_global_auth_rights_cfg.h
						\http-s_login_hooksapp_global_ctrl_layer_cfg.c
						\http-s_login_hooksapp_global_ctrl_layer_cfg.h
					\	app_global_http-s_login_instance_cfg.c
						\app_global_http-s_login_instance_cfg.h
					\HTML	app_global.c
						\log_failed.htmlapp_global.h
                    \NoFS
                        app_no_fs_http-s_hooks.c
                        app_no_fs_http-s_instance_cfg.c
                        app_no_fs_http-s_instance_cfg.h
                        app_no_fs.c
                        app_no_fs.h
                    \REST
						\log_out.htmlapp_rest_http-s_instance_cfg.c
						\log_sucess.htmlapp_rest_http-s_instance_cfg.h
						\login.htmlapp_rest.c
						\webpagesapp_staticrest.h
					\SSL-TLS
						http-s_hooks.c
						\http-s_instance_secure_cfg.c
					\	http-s_instance_secure_cfg.h
						\Certificate-Key
						\	cert.pem
							\key.pem
				\FS
                	\Static
                    	\Cfg
                        		\Template
                            \	http-s_fs_static_cfg.h   <-Cfg
                    \	http-s_fs_static.c
                    \	http-s_fs_static.h
            \OS	\Source
                	http-s.c
                	http-s.h
                    http-s_conn.c
                    http-s_conn.h
                    http-s_mem.c
                \uCOS-II	http-s_mem.h
                    \http-s_osreq.c
                  \uCOS-III  http-s_req.h
                    \http-s_osresp.c
                 \   http-s_osresp.h
              \Source      http-s_sock.c
                    http-s_sock.h
                    \http-s_str.c
                \    http-s_str.h
                \    http-s_memstack.c
                    \http-s_memstack.h