diff options
author | Adam Frisby | 2007-06-14 14:36:40 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-14 14:36:40 +0000 |
commit | 16b43b8bffff8f11f0f633d8f503e752223a4772 (patch) | |
tree | a4c4081d2ebc1bd24ff23ea18527891b206acf90 /Common/OpenSim.Servers/UDPServerBase.cs | |
parent | Fixed the bug that makes a region use its water height as its name (in region... (diff) | |
download | opensim-SC_OLD-16b43b8bffff8f11f0f633d8f503e752223a4772.zip opensim-SC_OLD-16b43b8bffff8f11f0f633d8f503e752223a4772.tar.gz opensim-SC_OLD-16b43b8bffff8f11f0f633d8f503e752223a4772.tar.bz2 opensim-SC_OLD-16b43b8bffff8f11f0f633d8f503e752223a4772.tar.xz |
* Added maintenance patch (issue #139) from BigfootAg to /trunk
Diffstat (limited to 'Common/OpenSim.Servers/UDPServerBase.cs')
-rw-r--r-- | Common/OpenSim.Servers/UDPServerBase.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Common/OpenSim.Servers/UDPServerBase.cs b/Common/OpenSim.Servers/UDPServerBase.cs index b472c97..b763315 100644 --- a/Common/OpenSim.Servers/UDPServerBase.cs +++ b/Common/OpenSim.Servers/UDPServerBase.cs | |||
@@ -78,6 +78,13 @@ namespace OpenSim.Servers | |||
78 | 78 | ||
79 | ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); | 79 | ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); |
80 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); | 80 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
81 | |||
82 | /// Add this new socket to the list of sockets that was opened by the application. When the application | ||
83 | /// closes, either gracefully or not, all sockets can be cleaned up. Right now I am not aware of any method | ||
84 | /// to get all of the sockets for a process within .NET, but if so, this process can be refactored, as | ||
85 | /// socket registration would not be neccessary. | ||
86 | SocketRegistry.Register(Server); | ||
87 | |||
81 | Server.Bind(ServerIncoming); | 88 | Server.Bind(ServerIncoming); |
82 | 89 | ||
83 | ipeSender = new IPEndPoint(IPAddress.Any, 0); | 90 | ipeSender = new IPEndPoint(IPAddress.Any, 0); |
@@ -93,3 +100,4 @@ namespace OpenSim.Servers | |||
93 | } | 100 | } |
94 | } | 101 | } |
95 | 102 | ||
103 | |||