Barracuda Application Server C/C++ Reference
NO
HttpMuxDir.h
1 /*
2  * ____ _________ __ _
3  * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4  * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5  * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6  * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7  * /____/
8  *
9  * Barracuda Embedded Web-Server
10  *
11  ****************************************************************************
12  * HEADER
13  *
14  * $Id: HttpMuxDir.h 4915 2021-12-01 18:26:55Z wini $
15  *
16  * COPYRIGHT: Real Time Logic, 2008
17  *
18  * This software is copyrighted by and is the sole property of Real
19  * Time Logic LLC. All rights, title, ownership, or other interests in
20  * the software remain the property of Real Time Logic LLC. This
21  * software may only be used in accordance with the terms and
22  * conditions stipulated in the corresponding license agreement under
23  * which the software has been supplied. Any unauthorized use,
24  * duplication, transmission, distribution, or disclosure of this
25  * software is expressly forbidden.
26  *
27  * This Copyright notice may not be removed or modified without prior
28  * written consent of Real Time Logic LLC.
29  *
30  * Real Time Logic LLC. reserves the right to modify this software
31  * without notice.
32  *
33  * http://www.realtimelogic.com
34  ****************************************************************************
35  *
36  *
37  */
38 
39 #ifndef __HttpMuxDir_h
40 #define __HttpMuxDir_h
41 
42 #include <HttpServer.h>
43 
44 
67 typedef struct HttpMuxDir
68 #ifdef __cplusplus
69 : public HttpDir
70 {
81  HttpMuxDir(const char* name,
82  HttpDir* startDir,
83  const char* muxResource,
84  S8 priority=0);
85 
86 #else
87 #if 0
88 }
89 #endif
90 {
91  HttpDir super; /* Inherits from HttpDir */
92 #endif
93  HttpDir_Service orgService;
94  HttpDir* startDir;
95  const char* muxResource;
96 } HttpMuxDir;
97 
98 #ifdef __cplusplus
99 extern "C" {
100 #endif
101 void HttpMuxDir_constructor(
102  HttpMuxDir* o,
103  const char* name,
104  HttpDir* startDir,
105  const char* muxResource,
106  S8 priority);
107 #ifdef __cplusplus
108 }
109 inline HttpMuxDir::HttpMuxDir(const char* name,
110  HttpDir* startDir,
111  const char* muxResource,
112  S8 priority) {
113  HttpMuxDir_constructor(this,name,startDir,muxResource,priority);
114 }
115 #endif
116 
117 #endif
HttpDir_Service
int(* HttpDir_Service)(struct HttpDir *o, const char *relPath, HttpCommand *cmd)
The HttpDir service callback function.
Definition: HttpServer.h:2350
HttpMuxDir
HttpMuxDir HttpDir Multiplexer captures many muxResource requests and feeds all muxResource requests ...
Definition: HttpMuxDir.h:70
HttpDir
An instance of the HttpDir class, which is a collection of zero or more resources,...
Definition: HttpServer.h:2384
HttpMuxDir::HttpMuxDir
HttpMuxDir(const char *name, HttpDir *startDir, const char *muxResource, S8 priority=0)
Definition: HttpMuxDir.h:109