aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewernetwork.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llviewernetwork.cpp
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llviewernetwork.cpp')
-rw-r--r--linden/indra/newview/llviewernetwork.cpp93
1 files changed, 93 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewernetwork.cpp b/linden/indra/newview/llviewernetwork.cpp
new file mode 100644
index 0000000..84c5833
--- /dev/null
+++ b/linden/indra/newview/llviewernetwork.cpp
@@ -0,0 +1,93 @@
1/**
2 * @file llviewernetwork.cpp
3 * @author James Cook, Richard Nelson
4 * @brief Networking constants and globals for viewer.
5 *
6 * Copyright (c) 2006-2007, Linden Research, Inc.
7 *
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#include "llviewerprecompiledheaders.h"
30
31#include "llviewernetwork.h"
32
33LLUserServerData gUserServerDomainName[USERSERVER_COUNT] =
34{
35 { "None", "", "", ""},
36 { "Aditi",
37 "userserver.aditi.lindenlab.com",
38 "https://login.aditi.lindenlab.com/cgi-bin/login.cgi",
39 "http://aditi-secondlife.webdev.lindenlab.com/helpers/" },
40 { "Agni",
41 "userserver.agni.lindenlab.com",
42 "https://login.agni.lindenlab.com/cgi-bin/login.cgi",
43 "https://secondlife.com/helpers/" },
44 { "DMZ",
45 "userserver.dmz.lindenlab.com",
46 "https://login.dmz.lindenlab.com/cgi-bin/login.cgi",
47 "http://dmz-secondlife.webdev.lindenlab.com/helpers/" },
48 { "Siva",
49 "userserver.siva.lindenlab.com",
50 "https://login.siva.lindenlab.com/cgi-bin/login.cgi",
51 "http://siva-secondlife.webdev.lindenlab.com/helpers/" },
52 { "Durga",
53 "userserver.durga.lindenlab.com",
54 "https://login.durga.lindenlab.com/cgi-bin/login.cgi",
55 "http://durga-secondlife.webdev.lindenlab.com/helpers/" },
56 { "Shakti",
57 "userserver.shakti.lindenlab.com",
58 "https://login.shakti.lindenlab.com/cgi-bin/login.cgi",
59 "http://shakti-secondlife.webdev.lindenlab.com/helpers/" },
60 { "Soma",
61 "userserver.soma.lindenlab.com",
62 "https://login.soma.lindenlab.com/cgi-bin/login.cgi",
63 "http://soma-secondlife.webdev.lindenlab.com/helpers/" },
64 { "Ganga",
65 "userserver.ganga.lindenlab.com",
66 "https://login.ganga.lindenlab.com/cgi-bin/login.cgi",
67 "http://ganga-secondlife.webdev.lindenlab.com/helpers/" },
68 { "Uma",
69 "userserver.uma.lindenlab.com",
70 "https://login.uma.lindenlab.com/cgi-bin/login.cgi",
71 "http://uma-secondlife.webdev.lindenlab.com/helpers/" },
72 { "Local",
73 "localhost",
74 "https://login.dmz.lindenlab.com/cgi-bin/login.cgi",
75 "" },
76 { "Other",
77 "",
78 "https://login.dmz.lindenlab.com/cgi-bin/login.cgi",
79 "" }
80};
81
82// Use this to figure out which domain name and login URI to use.
83
84EUserServerDomain gUserServerChoice = USERSERVER_NONE;
85char gUserServerName[MAX_STRING];
86
87LLHost gUserServer;
88
89F32 gPacketDropPercentage = 0.f;
90F32 gInBandwidth = 0.f;
91F32 gOutBandwidth = 0.f;
92
93unsigned char gMACAddress[MAC_ADDRESS_BYTES];