diff options
author | MW | 2007-02-04 11:36:35 +0000 |
---|---|---|
committer | MW | 2007-02-04 11:36:35 +0000 |
commit | 8c80d98252f376a815e522c705a3c576dfc16f75 (patch) | |
tree | 89e779435d3e9ea2a58b814d81a64e44e4067cc6 /Server.cs | |
parent | Basic Inventory support and clean up (diff) | |
download | opensim-SC-8c80d98252f376a815e522c705a3c576dfc16f75.zip opensim-SC-8c80d98252f376a815e522c705a3c576dfc16f75.tar.gz opensim-SC-8c80d98252f376a815e522c705a3c576dfc16f75.tar.bz2 opensim-SC-8c80d98252f376a815e522c705a3c576dfc16f75.tar.xz |
Clean up
Diffstat (limited to '')
-rw-r--r-- | Server.cs | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -45,8 +45,8 @@ namespace OpenSim | |||
45 | public interface ServerCallback | 45 | public interface ServerCallback |
46 | { | 46 | { |
47 | //should replace with delegates | 47 | //should replace with delegates |
48 | void MainCallback(Packet pack, User_Agent_info User_info); | 48 | void MainCallback(Packet pack, UserAgentInfo User_info); |
49 | void NewUserCallback(User_Agent_info User_info); | 49 | void NewUserCallback(UserAgentInfo User_info); |
50 | void ErrorCallback(string text); | 50 | void ErrorCallback(string text); |
51 | } | 51 | } |
52 | public class Server | 52 | public class Server |
@@ -197,7 +197,7 @@ namespace OpenSim | |||
197 | /// </summary> | 197 | /// </summary> |
198 | /// <param name="packet">Packet to be sent</param> | 198 | /// <param name="packet">Packet to be sent</param> |
199 | /// <param name="incrementSequence">Increment sequence number?</param> | 199 | /// <param name="incrementSequence">Increment sequence number?</param> |
200 | public void SendPacket(Packet packet, bool incrementSequence, User_Agent_info User_info) | 200 | public void SendPacket(Packet packet, bool incrementSequence, UserAgentInfo User_info) |
201 | { | 201 | { |
202 | byte[] buffer; | 202 | byte[] buffer; |
203 | int bytes; | 203 | int bytes; |
@@ -324,7 +324,7 @@ namespace OpenSim | |||
324 | /// <summary> | 324 | /// <summary> |
325 | /// Sends out pending acknowledgements | 325 | /// Sends out pending acknowledgements |
326 | /// </summary> | 326 | /// </summary> |
327 | private void SendAcks(User_Agent_info User_info) | 327 | private void SendAcks(UserAgentInfo User_info) |
328 | { | 328 | { |
329 | lock (User_info.PendingAcks) | 329 | lock (User_info.PendingAcks) |
330 | { | 330 | { |
@@ -358,7 +358,7 @@ namespace OpenSim | |||
358 | /// <summary> | 358 | /// <summary> |
359 | /// Resend unacknowledged packets | 359 | /// Resend unacknowledged packets |
360 | /// </summary> | 360 | /// </summary> |
361 | private void ResendUnacked(User_Agent_info User_info) | 361 | private void ResendUnacked(UserAgentInfo User_info) |
362 | { | 362 | { |
363 | if (connected) | 363 | if (connected) |
364 | { | 364 | { |
@@ -397,7 +397,7 @@ namespace OpenSim | |||
397 | 397 | ||
398 | // Update the disconnect flag so this sim doesn't time out | 398 | // Update the disconnect flag so this sim doesn't time out |
399 | DisconnectCandidate = false; | 399 | DisconnectCandidate = false; |
400 | User_Agent_info User_info=null; | 400 | UserAgentInfo User_info=null; |
401 | 401 | ||
402 | lock (RecvBuffer) | 402 | lock (RecvBuffer) |
403 | { | 403 | { |
@@ -416,7 +416,7 @@ namespace OpenSim | |||
416 | if (packet.Type == PacketType.UseCircuitCode) | 416 | if (packet.Type == PacketType.UseCircuitCode) |
417 | { | 417 | { |
418 | UseCircuitCodePacket cir_pack=(UseCircuitCodePacket)packet; | 418 | UseCircuitCodePacket cir_pack=(UseCircuitCodePacket)packet; |
419 | User_Agent_info new_user=new User_Agent_info(); | 419 | UserAgentInfo new_user=new UserAgentInfo(); |
420 | new_user.circuitCode=cir_pack.CircuitCode.Code; | 420 | new_user.circuitCode=cir_pack.CircuitCode.Code; |
421 | new_user.AgentID=cir_pack.CircuitCode.ID; | 421 | new_user.AgentID=cir_pack.CircuitCode.ID; |
422 | new_user.SessionID=cir_pack.CircuitCode.SessionID; | 422 | new_user.SessionID=cir_pack.CircuitCode.SessionID; |
@@ -429,13 +429,13 @@ namespace OpenSim | |||
429 | } | 429 | } |
430 | 430 | ||
431 | 431 | ||
432 | User_Agent_info temp_agent=null; | 432 | UserAgentInfo temp_agent=null; |
433 | IPEndPoint send_ip=(IPEndPoint)epSender; | 433 | IPEndPoint send_ip=(IPEndPoint)epSender; |
434 | // this.callback_object.error("incoming: address is "+send_ip.Address +"port number is: "+send_ip.Port.ToString()); | 434 | // this.callback_object.error("incoming: address is "+send_ip.Address +"port number is: "+send_ip.Port.ToString()); |
435 | 435 | ||
436 | for(int ii=0; ii<this.User_agents.Count ; ii++) | 436 | for(int ii=0; ii<this.User_agents.Count ; ii++) |
437 | { | 437 | { |
438 | temp_agent=(User_Agent_info)this.User_agents[ii]; | 438 | temp_agent=(UserAgentInfo)this.User_agents[ii]; |
439 | IPEndPoint ag_ip=(IPEndPoint)temp_agent.endpoint; | 439 | IPEndPoint ag_ip=(IPEndPoint)temp_agent.endpoint; |
440 | //this.callback_object.error("searching: address is "+ag_ip.Address +"port number is: "+ag_ip.Port.ToString()); | 440 | //this.callback_object.error("searching: address is "+ag_ip.Address +"port number is: "+ag_ip.Port.ToString()); |
441 | 441 | ||
@@ -563,7 +563,7 @@ namespace OpenSim | |||
563 | //TODO for each user_agent_info | 563 | //TODO for each user_agent_info |
564 | for(int i=0; i<this.User_agents.Count; i++) | 564 | for(int i=0; i<this.User_agents.Count; i++) |
565 | { | 565 | { |
566 | User_Agent_info user=(User_Agent_info)this.User_agents[i]; | 566 | UserAgentInfo user=(UserAgentInfo)this.User_agents[i]; |
567 | 567 | ||
568 | SendAcks(user); | 568 | SendAcks(user); |
569 | ResendUnacked(user); | 569 | ResendUnacked(user); |
@@ -619,7 +619,7 @@ namespace OpenSim | |||
619 | } | 619 | } |
620 | } | 620 | } |
621 | 621 | ||
622 | public class User_Agent_info | 622 | public class UserAgentInfo |
623 | { | 623 | { |
624 | public EndPoint endpoint; | 624 | public EndPoint endpoint; |
625 | public LLUUID AgentID; | 625 | public LLUUID AgentID; |
@@ -636,7 +636,7 @@ namespace OpenSim | |||
636 | // ACKs that are queued up to be sent to the simulator | 636 | // ACKs that are queued up to be sent to the simulator |
637 | public Dictionary<uint, uint> PendingAcks = new Dictionary<uint, uint>(); | 637 | public Dictionary<uint, uint> PendingAcks = new Dictionary<uint, uint>(); |
638 | 638 | ||
639 | public User_Agent_info() | 639 | public UserAgentInfo() |
640 | { | 640 | { |
641 | 641 | ||
642 | } | 642 | } |