* Added JSON library to parse LLSD fields in the login reply

* Added fields in Avatar to hold the parsed data from login
* CoarseLocationUpdate packets handled internally
* Added Network.LoginValues hashtable, removed second parameter from .Login()
* Updated examples to reflect LoginValues / Login() change

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@39 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2006-07-01 03:42:53 +00:00
parent e224631fc7
commit b4accdddfc
20 changed files with 3224 additions and 44 deletions

View File

@@ -97,9 +97,8 @@ namespace name2key
Hashtable loginParams = NetworkManager.DefaultLoginValues(args[0], args[1], args[2], "00:00:00:00:00:00",
"last", 1, 10, 10, 10, "Win", "0", "name2key", "jhurliman@wsu.edu");
Hashtable loginReply = new Hashtable();
if (!client.Network.Login(loginParams, out loginReply))
if (!client.Network.Login(loginParams))
{
// Login failed
Console.WriteLine("ERROR: " + client.Network.LoginError);

View File

@@ -83,6 +83,7 @@
Name = "libsecondlife"
Project = "{D9CDEDFB-8169-4B03-B57F-0DF638F044EC}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
Private = "False"
/>
</References>
</Build>

View File

@@ -473,11 +473,11 @@ namespace SLAccountant
Hashtable loginParams = NetworkManager.DefaultLoginValues(txtFirstName.Text,
txtLastName.Text, txtPassword.Text, "00:00:00:00:00:00", "last", 1, 10, 10, 0,
"Win", "0", "accountant", "jhurliman@wsu.edu");
Hashtable loginValues = new Hashtable();
if (client.Network.Login(loginParams, out loginValues))
if (client.Network.Login(loginParams))
{
lblName.Text = loginValues["first_name"] + " " + loginValues["last_name"];
lblName.Text = client.Network.LoginValues["first_name"] + " " +
client.Network.LoginValues["last_name"];
// AgentHeightWidth
Hashtable blocks = new Hashtable();

View File

@@ -93,6 +93,7 @@
Name = "libsecondlife"
Project = "{D9CDEDFB-8169-4B03-B57F-0DF638F044EC}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
Private = "False"
/>
</References>
</Build>

View File

@@ -168,9 +168,7 @@ namespace sldump
optionsArray.Add("inventory-skeleton");
loginParams["options"] = optionsArray;
Hashtable loginReply = new Hashtable();
if (!client.Network.Login(loginParams, out loginReply))
if (!client.Network.Login(loginParams))
{
// Login failed
Console.WriteLine("Error logging in: " + client.Network.LoginError);
@@ -178,7 +176,7 @@ namespace sldump
}
// Login was successful
Console.WriteLine("Message of the day: " + loginReply["message"]);
Console.WriteLine("Message of the day: " + client.Network.LoginValues["message"]);
while (true)
{

View File

@@ -83,6 +83,7 @@
Name = "libsecondlife"
Project = "{D9CDEDFB-8169-4B03-B57F-0DF638F044EC}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
Private = "False"
/>
</References>
</Build>