This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/net/httpd/NyLPC_cHttpd.h
- Revision:
- 79:baa21f8763cf
- Parent:
- 42:f83aa17dcae5
- Child:
- 109:18f12ac01097
--- a/core/net/httpd/NyLPC_cHttpd.h Mon Jun 23 04:45:57 2014 +0000 +++ b/core/net/httpd/NyLPC_cHttpd.h Tue Jun 24 09:37:24 2014 +0000 @@ -10,6 +10,25 @@ extern "C" { #endif /* __cplusplus */ +/** + * HTTPコネクションスレッドの数 + */ +#ifndef NyLPC_cHttpd_NUMBER_OF_CONNECTION_THREAD +# define NyLPC_cHttpd_NUMBER_OF_CONNECTION_THREAD 3 +#endif + +/** + * 持続性接続を許可するコネクションの数 + * NyLPC_cHttpd_NUMBER_OF_CONNECTION_THREAD-1以下にしてください。 + */ +#ifndef NyLPC_cHttpd_MAX_PERSISTENT_CONNECTION +# define NyLPC_cHttpd_MAX_PERSISTENT_CONNECTION (NyLPC_cHttpd_NUMBER_OF_CONNECTION_THREAD-1) +#endif + + + + + #ifndef DEFINE_NyLPC_TcHttpdConnection_t typedef struct NyLPC_TcHttpdConnection NyLPC_TcHttpdConnection_t; #define DEFINE_NyLPC_TcHttpdConnection_t @@ -17,7 +36,8 @@ -#define NyLPC_cNet_NUMBER_OF_THREAD 3 + + typedef void (*NyLPC_TcHttpd_onRequest)(NyLPC_TcHttpdConnection_t* i_inst); /** @@ -34,7 +54,7 @@ }function; NyLPC_TcMutex_t _mutex; NyLPC_TcTcpListener_t _listener; - NyLPC_TcHttpdThread_t _thread[NyLPC_cNet_NUMBER_OF_THREAD]; + NyLPC_TcHttpdThread_t _thread[NyLPC_cHttpd_NUMBER_OF_CONNECTION_THREAD]; NyLPC_TInt16 _num_of_active_connection; };