Initial version of administrator command-line tool [Victor]
[public/netxms.git] / src / server / tools / nxadm / nxadm.h
CommitLineData
f327f30b
VK
1/*
2** NetXMS - Network Management System
3** Local administration tool
4** Copyright (C) 2003, 2004 Victor Kirhenshtein
5**
6** This program is free software; you can redistribute it and/or modify
7** it under the terms of the GNU General Public License as published by
8** the Free Software Foundation; either version 2 of the License, or
9** (at your option) any later version.
10**
11** This program is distributed in the hope that it will be useful,
12** but WITHOUT ANY WARRANTY; without even the implied warranty of
13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14** GNU General Public License for more details.
15**
16** You should have received a copy of the GNU General Public License
17** along with this program; if not, write to the Free Software
18** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19**
20** $module: nxadm.h
21**
22**/
23
24#ifndef _nxadm_h_
25#define _nxadm_h_
26
27#include <stdio.h>
28#include <nms_common.h>
29#include <local_admin.h>
30
31
32//
33// Functions
34//
35
36BOOL Connect(void);
37void Disconnect(void);
38BOOL SendString(char *szString);
39int RecvString(char *pBuffer, int iBufSize);
40BOOL SendCommand(WORD wCmd);
41WORD RecvResponce(void);
42BOOL RecvDWord(DWORD *pBuffer);
43BOOL SendDWord(DWORD dwValue);
44
45
46//
47// Global variables
48//
49
50extern SOCKET g_hSocket;
51
52#endif