PageRenderTime 59ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llmessage/machine.cpp

https://bitbucket.org/lindenlab/viewer-beta/
C++ | 56 lines | 27 code | 4 blank | 25 comment | 4 complexity | d291fb77d4d3c330997771eee34158c8 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file machine.cpp
  3. * @brief LLMachine class header file
  4. *
  5. * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library 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 GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #include "linden_common.h"
  27. #include "machine.h"
  28. #include "llerror.h"
  29. void LLMachine::setMachinePort(S32 port)
  30. {
  31. if (port < 0)
  32. {
  33. llinfos << "Can't assign a negative number to LLMachine::mPort" << llendl;
  34. mHost.setPort(0);
  35. }
  36. else
  37. {
  38. mHost.setPort(port);
  39. }
  40. }
  41. void LLMachine::setControlPort( S32 port )
  42. {
  43. if (port < 0)
  44. {
  45. llinfos << "Can't assign a negative number to LLMachine::mControlPort" << llendl;
  46. mControlPort = 0;
  47. }
  48. else
  49. {
  50. mControlPort = port;
  51. }
  52. }