Compilation issues fixed
[public/netxms.git] / src / server / include / nxcore_smclp.h
CommitLineData
d41edbd3
VK
1/* \r
2** NetXMS - Network Management System\r
3** Copyright (C) 2003-2009 Victor Kirhenshtein\r
4**\r
5** This program is free software; you can redistribute it and/or modify\r
6** it under the terms of the GNU General Public License as published by\r
7** the Free Software Foundation; either version 2 of the License, or\r
8** (at your option) any later version.\r
9**\r
10** This program is distributed in the hope that it will be useful,\r
11** but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
13** GNU General Public License for more details.\r
14**\r
15** You should have received a copy of the GNU General Public License\r
16** along with this program; if not, write to the Free Software\r
17** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
18**\r
19** File: nxcore_smclp.h\r
20**\r
21**/\r
22\r
23#ifndef _nxcore_smclp_h_\r
24#define _nxcore_smclp_h_\r
25\r
26#define SMCLP_TELNET 0\r
27#define SMCLP_SSH 1\r
28\r
29/**\r
30 * SM CLP connection class\r
31 */\r
32class NXCORE_EXPORTABLE SMCLP_Connection\r
33{\r
34private:\r
068a2e2c 35 DWORD m_ip;\r
d41edbd3 36 WORD m_port;\r
d41edbd3 37 DWORD m_timeout;\r
068a2e2c 38 TelnetConnection *m_conn;\r
d41edbd3
VK
39\r
40public:\r
068a2e2c 41 SMCLP_Connection(DWORD ip, WORD port);\r
d41edbd3
VK
42 ~SMCLP_Connection();\r
43\r
44 bool connect(const TCHAR *login, const TCHAR *password);\r
45 void disconnect();\r
068a2e2c
AK
46\r
47 TCHAR *get(const TCHAR *path, const TCHAR *parameter);\r
d41edbd3
VK
48};\r
49\r
50#endif\r