aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/RemoteServers/RemoteGridServers/RemoteGrid.cs
diff options
context:
space:
mode:
authorMW2007-03-15 10:14:12 +0000
committerMW2007-03-15 10:14:12 +0000
commit8d1e9f83f338de21482547816834f4535cebf5bc (patch)
treeb09bb3a9e1ba4eff9032929b0c3b99cbe08b9965 /src/RemoteServers/RemoteGridServers/RemoteGrid.cs
parentAdded simple mono/nant instructions (diff)
downloadopensim-SC_OLD-8d1e9f83f338de21482547816834f4535cebf5bc.zip
opensim-SC_OLD-8d1e9f83f338de21482547816834f4535cebf5bc.tar.gz
opensim-SC_OLD-8d1e9f83f338de21482547816834f4535cebf5bc.tar.bz2
opensim-SC_OLD-8d1e9f83f338de21482547816834f4535cebf5bc.tar.xz
Cleaned up IGridServer interfaces.
Added a try/catch around the http server Startup
Diffstat (limited to '')
-rw-r--r--src/RemoteServers/RemoteGridServers/RemoteGrid.cs23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/RemoteServers/RemoteGridServers/RemoteGrid.cs b/src/RemoteServers/RemoteGridServers/RemoteGrid.cs
index 26cd137..17b6440 100644
--- a/src/RemoteServers/RemoteGridServers/RemoteGrid.cs
+++ b/src/RemoteServers/RemoteGridServers/RemoteGrid.cs
@@ -65,13 +65,13 @@ namespace RemoteGridServers
65 return(new RemoteAssetServer()); 65 return(new RemoteAssetServer());
66 } 66 }
67 } 67 }
68 public class RemoteGridServer :IGridServer 68 public class RemoteGridServer : RemoteGridBase
69 { 69 {
70 private string GridServerUrl; 70 private string GridServerUrl;
71 private string GridSendKey; 71 private string GridSendKey;
72 private Dictionary<uint, agentcircuitdata> AgentCircuits = new Dictionary<uint, agentcircuitdata>(); 72 private Dictionary<uint, agentcircuitdata> AgentCircuits = new Dictionary<uint, agentcircuitdata>();
73 73
74 public Dictionary<uint, agentcircuitdata> agentcircuits { 74 public override Dictionary<uint, agentcircuitdata> agentcircuits {
75 get {return AgentCircuits;} 75 get {return AgentCircuits;}
76 set {AgentCircuits=value;} 76 set {AgentCircuits=value;}
77 } 77 }
@@ -81,13 +81,12 @@ namespace RemoteGridServers
81 ServerConsole.MainConsole.Instance.WriteLine("Remote Grid Server class created"); 81 ServerConsole.MainConsole.Instance.WriteLine("Remote Grid Server class created");
82 } 82 }
83 83
84 public bool RequestConnection() 84 public override bool RequestConnection()
85 { 85 {
86 return true; 86 return true;
87 } 87 }
88 88
89 89 public override AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitcode)
90 public AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitcode)
91 { 90 {
92 agentcircuitdata validcircuit=this.AgentCircuits[circuitcode]; 91 agentcircuitdata validcircuit=this.AgentCircuits[circuitcode];
93 AuthenticateResponse user = new AuthenticateResponse(); 92 AuthenticateResponse user = new AuthenticateResponse();
@@ -110,7 +109,7 @@ namespace RemoteGridServers
110 return(user); 109 return(user);
111 } 110 }
112 111
113 public bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) 112 public override bool LogoutSession(LLUUID sessionID, LLUUID agentID, uint circuitCode)
114 { 113 {
115 WebRequest DeleteSession = WebRequest.Create(GridServerUrl + "/usersessions/" + sessionID.ToString()); 114 WebRequest DeleteSession = WebRequest.Create(GridServerUrl + "/usersessions/" + sessionID.ToString());
116 DeleteSession.Method="DELETE"; 115 DeleteSession.Method="DELETE";
@@ -127,26 +126,26 @@ namespace RemoteGridServers
127 return(true); 126 return(true);
128 } 127 }
129 128
130 public UUIDBlock RequestUUIDBlock() 129 public override UUIDBlock RequestUUIDBlock()
131 { 130 {
132 UUIDBlock uuidBlock = new UUIDBlock(); 131 UUIDBlock uuidBlock = new UUIDBlock();
133 return(uuidBlock); 132 return(uuidBlock);
134 } 133 }
135 134
136 public void RequestNeighbours() 135 public override void RequestNeighbours()
137 { 136 {
138 return; 137 return;
139 } 138 }
140 139
141 public void SetServerInfo(string ServerUrl, string ServerKey) 140 public override void SetServerInfo(string ServerUrl, string ServerKey)
142 { 141 {
143 this.GridServerUrl = ServerUrl; 142 this.GridServerUrl = ServerUrl;
144 this.GridSendKey = ServerKey; 143 this.GridSendKey = ServerKey;
145 } 144 }
146 145
147 public void AddNewSession(Login session) 146 public override string GetName()
148 { 147 {
149 148 return "Remote";
150 } 149 }
151 } 150 }
152 151