2005-05-31 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Tue, 31 May 2005 08:30:34 +0000 (08:30 -0000)
committerLluis Sanchez <lluis@novell.com>
Tue, 31 May 2005 08:30:34 +0000 (08:30 -0000)
* TcpServerChannel.cs: Use IP address in object uris by default.
Fixes bug #54234. Removed unused field.
* TcpClientTransportSink.cs: Fix warning.

svn path=/trunk/mcs/; revision=45241

mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/ChangeLog
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs

index 106f79158768fef08632496e132d454e9d6b81d3..3799c5f099db8cb3ba2b45586293d8bf526743ee 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-31  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * TcpServerChannel.cs: Use IP address in object uris by default.
+       Fixes bug #54234. Removed unused field.
+       * TcpClientTransportSink.cs: Fix warning.
+
 2005-05-18  Lluis Sanchez Gual  <lluis@novell.com>
 
        * TcpServerChannel.cs: In StopListening, wait for the server thread
index 8b058db0ddd86b26e957e30a50a9a949470aed62..f6f482bb68129a6f0f1d0f374b045978699529c5 100644 (file)
@@ -40,14 +40,12 @@ namespace System.Runtime.Remoting.Channels.Tcp
        internal class TcpClientTransportSink : IClientChannelSink
        {
                string _host;
-               string _url;
                int _port;
                
                public TcpClientTransportSink (string url)
                {
                        string objectUri;
                        _host = TcpChannel.ParseTcpURL (url, out objectUri, out _port);
-                       _url = url;
                }
 
                public IDictionary Properties
index 81f3e0499087c0a4f692f9ee25d26b9bf1cc0ff6..a538a34b71a7a33b58894104da3abe677edd888d 100644 (file)
@@ -46,7 +46,7 @@ namespace System.Runtime.Remoting.Channels.Tcp
                string host = null;
                int priority = 1;
                bool supressChannelData = false;
-               bool useIpAddress = false;
+               bool useIpAddress = true;
                
                IPAddress bindAddress = IPAddress.Any;
                Thread server_thread = null;
@@ -255,13 +255,11 @@ namespace System.Runtime.Remoting.Channels.Tcp
                Socket _socket;
                TcpServerTransportSink _sink;
                Stream _stream;
-               TcpServerChannel _serverChannel;
 
                byte[] _buffer = new byte[TcpMessageIO.DefaultStreamBufferSize];
 
                public ClientConnection (TcpServerChannel serverChannel, Socket socket, TcpServerTransportSink sink)
                {
-                       _serverChannel = serverChannel;
                        _socket = socket;
                        _sink = sink;
                        _id = _count++;