-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverConnectThread2.h
43 lines (29 loc) · 1.09 KB
/
serverConnectThread2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef SERVERCONNECTTHREAD2_H
#define SERVERCONNECTTHREAD2_H
#include "dataTypes.h"
#include "StartLineProcess.h"
class serverConnectThread2 : public CBasicThread
{
private:
tagThreadInfo m_threadInfo;
timespec m_stTimeInterval;
//serverDetails serverObject;
//ItrServerDetails serverIter;
tagServerInfo sdt;
int noOfProcess;
public:
LIBSSH2_CHANNEL *channel;
LIBSSH2_SESSION *session;
IpPathMap ipPathMapObj;
serverConnectThread2(int nThreadIndex);
~serverConnectThread2();
inline IpPathMap getPathInfo()
{
return ipPathMapObj;
}
StartLineProcessConnector *conn;
// RET_CODE ParseServerConfigFile(const char* pcFileName, tagServerInfo& ServerInfo,StartLineProcessConnector *lpconn);
RET_CODE Process(void* pcThreadParam);
static RET_CODE waitsocket(int socket_fd,LIBSSH2_SESSION *session);
};
#endif /* SERVERCONNECTTHREAD2_H */