File: net.cpp

package info (click to toggle)
postal1 2015.git20250526%2Bds-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky
  • size: 14,024 kB
  • sloc: cpp: 130,877; ansic: 38,942; python: 874; makefile: 351; sh: 61
file content (74 lines) | stat: -rw-r--r-- 2,147 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 RWS Inc, All Rights Reserved
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of version 2 of the GNU General Public License as published by
// the Free Software Foundation
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
// net.cpp
// Project: Nostril (aka Postal)
//
//	History:
//		08/18/97 MJR	Created this to hold some generic stuff.
//
//		08/27/97 MJR	Shortened text so it would fit in the text field.
//
////////////////////////////////////////////////////////////////////////////////

#include "RSPiX.h"
#include "net.h"

#ifdef WIN32
	#define NETNAMESPACE
#else
	#define NETNAMESPACE		Net::
#endif

// Lookup tables associated with the CNetLimits::NetBandwidth enums.
#ifdef WIN32
namespace Net
	{
#endif

	int32_t	NETNAMESPACE lBandwidthValues[Net::NumBandwidths] =
		{
		   1400,						// Analog14_4
		   2400,						// Analog28_8
		   2400,						// Analog33_6
		   2400,						// Analog57_6
		   5600,						// ISDN1Channel
		  11200,						// ISDN2Channel
		 800000,						// LAN10Mb
		1000000						// LAN100Mb
		};

	char* NETNAMESPACE BandwidthText[Net::NumBandwidths] =
		{
		"14.4 Modem",						// Analog14_4
		"28.8 Modem",						// Analog28_8
		"33.6 Modem",						// Analog33_6
		"57.6 Modem",						// Analog57_6
		"ISDN, 1 Channel",				// ISDN1Channel
		"ISDN, 2 Channels",				// ISDN2Channel
		"10Mb LAN (or T1)",				// LAN10Mb
		"100Mb LAN (or T3)"				// LAN100Mb
		};

#ifdef WIN32
	}
#endif


////////////////////////////////////////////////////////////////////////////////
// EOF
////////////////////////////////////////////////////////////////////////////////