net.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. // net.cpp
  19. // Project: Nostril (aka Postal)
  20. //
  21. // History:
  22. // 08/18/97 MJR Created this to hold some generic stuff.
  23. //
  24. // 08/27/97 MJR Shortened text so it would fit in the text field.
  25. //
  26. ////////////////////////////////////////////////////////////////////////////////
  27. #include "RSPiX.h"
  28. #include "net.h"
  29. #ifdef WIN32
  30. #define NETNAMESPACE
  31. #else
  32. #define NETNAMESPACE Net::
  33. #endif
  34. // Lookup tables associated with the CNetLimits::NetBandwidth enums.
  35. #ifdef WIN32
  36. namespace Net
  37. {
  38. #endif
  39. long NETNAMESPACE lBandwidthValues[Net::NumBandwidths] =
  40. {
  41. 1400, // Analog14_4
  42. 2400, // Analog28_8
  43. 2400, // Analog33_6
  44. 2400, // Analog57_6
  45. 5600, // ISDN1Channel
  46. 11200, // ISDN2Channel
  47. 800000, // LAN10Mb
  48. 1000000 // LAN100Mb
  49. };
  50. char* NETNAMESPACE BandwidthText[Net::NumBandwidths] =
  51. {
  52. "14.4 Modem", // Analog14_4
  53. "28.8 Modem", // Analog28_8
  54. "33.6 Modem", // Analog33_6
  55. "57.6 Modem", // Analog57_6
  56. "ISDN, 1 Channel", // ISDN1Channel
  57. "ISDN, 2 Channels", // ISDN2Channel
  58. "10Mb LAN (or T1)", // LAN10Mb
  59. "100Mb LAN (or T3)" // LAN100Mb
  60. };
  61. #ifdef WIN32
  62. }
  63. #endif
  64. ////////////////////////////////////////////////////////////////////////////////
  65. // EOF
  66. ////////////////////////////////////////////////////////////////////////////////