condTimedWait fixed
[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>
1216cc73 29#include <nms_util.h>
f327f30b
VK
30#include <local_admin.h>
31
32
33//
34// Functions
35//
36
37BOOL Connect(void);
38void Disconnect(void);
39BOOL SendString(char *szString);
40int RecvString(char *pBuffer, int iBufSize);
41BOOL SendCommand(WORD wCmd);
42WORD RecvResponce(void);
43BOOL RecvDWord(DWORD *pBuffer);
44BOOL SendDWord(DWORD dwValue);
45
46
47//
48// Global variables
49//
50
51extern SOCKET g_hSocket;
52
53#endif