OSDN Git Service

update libMiMic
[mimic/MiMicSDK.git] / lib / src / net / httpd / NyLPC_cHttpdThread.h
1 /*\r
2  * NyLPC_TcHttpd_Thread.h\r
3  *\r
4  *  Created on: 2013/02/07\r
5  *      Author: nyatla\r
6  */\r
7 \r
8 #ifndef NYLPC_TCHTTPDTHREAD_H_\r
9 #define NYLPC_TCHTTPDTHREAD_H_\r
10 #include "NyLPC_stdlib.h"\r
11 #include "../NyLPC_cNetConfig.h"\r
12 #include "NyLPC_cHttpdConnection.h"\r
13 \r
14 #ifdef __cplusplus\r
15 extern "C" {\r
16 #endif /* __cplusplus */\r
17 \r
18 #ifndef DEFINE_NyLPC_TcHttpd_t\r
19     typedef struct NyLPC_TcHttpd NyLPC_TcHttpd_t;\r
20     #define DEFINE_NyLPC_TcHttpd_t\r
21 #endif\r
22 \r
23 /** Httpdセッションスレッドのスタックサイズ*/\r
24 #ifndef NyLPC_cHttpdThread_SIZE_OF_THREAD_STACK\r
25 #   define NyLPC_cHttpdThread_SIZE_OF_THREAD_STACK 1024\r
26 #endif\r
27 \r
28 typedef struct NyLPC_TcHttpdThread NyLPC_TcHttpdThread_t;\r
29 /**\r
30  * このクラスは、httpdのワーカースレッドです。1セッションを担当します。\r
31  */\r
32 struct NyLPC_TcHttpdThread\r
33 {\r
34     NyLPC_TcThread_t _super;\r
35     /** 関数アドレスを格納したポインタ*/\r
36     NyLPC_TcHttpdConnection_t _connection;\r
37 };\r
38 \r
39 \r
40 NyLPC_TBool NyLPC_cHttpdThread_initialize(NyLPC_TcHttpdThread_t* i_inst,NyLPC_TcHttpd_t* i_parent,NyLPC_TInt32 i_prio);\r
41 void NyLPC_cHttpdThread_finalize(NyLPC_TcHttpdThread_t* i_inst);\r
42 NyLPC_TBool NyLPC_cHttpdThread_start(NyLPC_TcHttpdThread_t* i_inst,NyLPC_TiTcpListener_t* i_listener);\r
43 \r
44 #ifdef __cplusplus\r
45 }\r
46 #endif /* __cplusplus */\r
47 #endif /* NYLPC_TCHTTPDTHREAD_H_ */\r