aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/JId.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-02 01:03:31 +0000
committerTeravus Ovares2008-04-02 01:03:31 +0000
commitb790a16e986a0296b3a006f0db2b1011e5377ce9 (patch)
tree544aa40283c709476038bc3fe53b6611d919bec9 /OpenSim/Framework/JId.cs
parent* Remove the quit command from the inventory console which was actually addin... (diff)
downloadopensim-SC_OLD-b790a16e986a0296b3a006f0db2b1011e5377ce9.zip
opensim-SC_OLD-b790a16e986a0296b3a006f0db2b1011e5377ce9.tar.gz
opensim-SC_OLD-b790a16e986a0296b3a006f0db2b1011e5377ce9.tar.bz2
opensim-SC_OLD-b790a16e986a0296b3a006f0db2b1011e5377ce9.tar.xz
* Updating the version of the ODE library. (big update). The Mac library needs to be updated still.
* Adding some XMPP stuff that's incomplete.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/JId.cs42
1 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Framework/JId.cs b/OpenSim/Framework/JId.cs
new file mode 100644
index 0000000..790a9e0
--- /dev/null
+++ b/OpenSim/Framework/JId.cs
@@ -0,0 +1,42 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework
6{
7 public class JId
8 {
9 public string ServerIP = String.Empty;
10 public int ServerPort = 0;
11 public string username = String.Empty;
12 public string resource = String.Empty;
13
14 public JId()
15 {
16
17 }
18 public JId(string sJId)
19 {
20 // user@address:port/resource
21 string[] jidsplit = sJId.Split('@');
22 if (jidsplit.GetUpperBound(0) == 2)
23 {
24 string[] serversplit = jidsplit[1].Split(':');
25 if (serversplit.GetUpperBound(0) == 2)
26 {
27 ServerIP = serversplit[0];
28 string[] resourcesplit = serversplit[1].Split('/');
29
30 ServerPort = Convert.ToInt32(resourcesplit[0]);
31
32 if (resourcesplit.GetUpperBound(0) == 2)
33 resource = resourcesplit[1];
34
35 username = jidsplit[0];
36
37 }
38 }
39 }
40
41 }
42}