projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.9.2
[platform/upstream/iotivity.git]
/
examples
/
OICMiddle
/
RestInput.h
diff --git
a/examples/OICMiddle/RestInput.h
b/examples/OICMiddle/RestInput.h
index
2e1cad6
..
56ec3ff
100644
(file)
--- a/
examples/OICMiddle/RestInput.h
+++ b/
examples/OICMiddle/RestInput.h
@@
-28,8
+28,10
@@
class Connection;
class RestInput
{
class RestInput
{
+ static const int MAX_CONNS = 5;
public:
RestInput(LineInput *lineInput);
public:
RestInput(LineInput *lineInput);
+ ~RestInput();
bool init();
void startAccept(int &sockfd);
void startThread();
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;
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
};
#endif // RESTINPUT_H