nidas v1.2.3
SocketAddrs.h
Go to the documentation of this file.
1// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2// vim: set shiftwidth=4 softtabstop=4 expandtab:
3/*
4 ********************************************************************
5 ** NIDAS: NCAR In-situ Data Acquistion Software
6 **
7 ** 2009, Copyright University Corporation for Atmospheric Research
8 **
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
13 **
14 ** This program is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ** GNU General Public License for more details.
18 **
19 ** The LICENSE.txt file accompanying this software contains
20 ** a copy of the GNU General Public License. If it is not found,
21 ** write to the Free Software Foundation, Inc.,
22 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 **
24 ********************************************************************
25*/
26
27#ifndef NIDAS_CORE_SOCKETADDRS_H
28#define NIDAS_CORE_SOCKETADDRS_H
29
30#define NIDAS_SVC_REQUEST_PORT_UDP 30000 // dsm_server listens for service requests
31#define NIDAS_RAW_DATA_PORT_TCP 30000 // TCP port for raw data connections
32
33#define NIDAS_STATUS_PORT_UDP 30001 // nidas processes multicast status on this port
34#define NIDAS_SYNCREC_DATA_TCP 30001 // port for sending syncrecord data
35 // TODO: use unix socket for this
36
37#define NIDAS_DATA_PORT_UDP 30002 // UDP port for processed data
38#define NIDAS_RSERIAL_PORT_TCP 30002 // rserial connections
39
40#define DSM_SERVER_XMLRPC_PORT_TCP 30003 // dsm_server xmlrpc listen port, DSMServerIntf.cc
41
42#define DSM_XMLRPC_PORT_TCP 30004 // dsm process xmlrpc listen port, DSMEngineIntf.cc
43
44#define NIDAS_XMLRPC_STATUS_PORT_TCP 30006 // status_listener provides merged status on this port
45
46#define NIDAS_VARIABLE_LIST_PORT_TCP 30007 // server port for providing list of variables
47
48#define NIDAS_MULTICAST_ADDR "239.0.0.10"
49
50#endif