X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2FOICMiddle%2FRestInput.h;h=56ec3ff2437eab03fe888ee2be6f7c41cbef6a7e;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=2e1cad6fd2361a0d42d6265e11033685e3291e37;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/examples/OICMiddle/RestInput.h b/examples/OICMiddle/RestInput.h index 2e1cad6..56ec3ff 100644 --- a/examples/OICMiddle/RestInput.h +++ b/examples/OICMiddle/RestInput.h @@ -28,8 +28,10 @@ class Connection; class RestInput { + static const int MAX_CONNS = 5; public: RestInput(LineInput *lineInput); + ~RestInput(); bool init(); void startAccept(int &sockfd); void startThread(); @@ -43,7 +45,7 @@ protected: int m_sockfd, m_port, m_threadCount; struct sockaddr_in m_serverAddr; char *m_data; - std::thread *m_thread; + std::thread m_thread[MAX_CONNS]; }; #endif // RESTINPUT_H