PageRenderTime 24ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 2ms 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
 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
28#include "machine.h"
29
30#include "llerror.h"
31
32void LLMachine::setMachinePort(S32 port)
33{ 
34	if (port < 0) 
35	{
36		llinfos << "Can't assign a negative number to LLMachine::mPort" << llendl;
37		mHost.setPort(0);
38	}
39	else 
40	{
41		mHost.setPort(port); 
42	}
43}
44
45void LLMachine::setControlPort( S32 port ) 
46{
47	if (port < 0) 
48	{
49		llinfos << "Can't assign a negative number to LLMachine::mControlPort" << llendl;
50		mControlPort = 0;
51	}
52	else 
53	{
54		mControlPort = port; 
55	}
56}