Author: gert
Date: 2006-05-31 04:46:36 -0400 (Wed, 31 May 2006)
New Revision: 61302

Modified:
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/ChangeLog
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSinkProvider.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpConnectionPool.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerTransportSink.cs
Log:
* TcpClientChannel.cs: Set eol-style to native.
* TcpChannel.cs: Fixed line endings. Set eol-style to native.
* TcpServerTransportSink.cs: Fixed line endings. Set eol-style to
native.
* TcpConnectionPool.cs: Fixed line endings. Set eol-style to CRLF.
* TcpClientTransportSinkProvider.cs: Fixed line endings. Set eol-style
to native.
* TcpMessageIO.cs: Set eol-style to native.
* TcpServerChannel.cs: Fixed line endings. Set eol-style to native.
* TcpClientTransportSink.cs: Fixed line endings. Set eol-style to
native.


Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/ChangeLog
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/ChangeLog
      2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/ChangeLog
      2006-05-31 08:46:36 UTC (rev 61302)
@@ -1,3 +1,17 @@
+2006-05-31  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * TcpClientChannel.cs: Set eol-style to native.
+       * TcpChannel.cs: Fixed line endings. Set eol-style to native.
+       * TcpServerTransportSink.cs: Fixed line endings. Set eol-style to
+       native.
+       * TcpConnectionPool.cs: Fixed line endings. Set eol-style to CRLF.
+       * TcpClientTransportSinkProvider.cs: Fixed line endings. Set eol-style
+       to native.
+       * TcpMessageIO.cs: Set eol-style to native.
+       * TcpServerChannel.cs: Fixed line endings. Set eol-style to native.
+       * TcpClientTransportSink.cs: Fixed line endings. Set eol-style to
+       native.
+
 2005-11-08  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 
 
        * TcpServerChannel.cs: Fix null ref exception.

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
  2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
  2006-05-31 08:46:36 UTC (rev 61302)
@@ -36,38 +36,38 @@
 {
        public class TcpChannel : IChannelReceiver, IChannel, IChannelSender
        {
-               private TcpClientChannel _clientChannel;
-               private TcpServerChannel _serverChannel = null;
-               private string _name = "tcp";
+               private TcpClientChannel _clientChannel;
+               private TcpServerChannel _serverChannel = null;
+               private string _name = "tcp";
                private int _priority = 1;
        
                public TcpChannel ()
         {
-                       Init (new Hashtable(), null, null);
+                       Init (new Hashtable(), null, null);
                }
 
                public TcpChannel (int port)
                {
-                       Hashtable ht = new Hashtable();
-                       ht["port"] = port.ToString();
-                       Init(ht, null, null);
+                       Hashtable ht = new Hashtable();
+                       ht["port"] = port.ToString();
+                       Init(ht, null, null);
                }
 
-               void Init (IDictionary properties, IClientChannelSinkProvider 
clientSink, IServerChannelSinkProvider serverSink)
-               {
-                       _clientChannel = new TcpClientChannel 
(properties,clientSink);
+               void Init (IDictionary properties, IClientChannelSinkProvider 
clientSink, IServerChannelSinkProvider serverSink)
+               {
+                       _clientChannel = new TcpClientChannel 
(properties,clientSink);
 
-                       if(properties["port"] != null)
-                               _serverChannel = new 
TcpServerChannel(properties, serverSink);
-
+                       if(properties["port"] != null)
+                               _serverChannel = new 
TcpServerChannel(properties, serverSink);
+
                        object val = properties ["name"];
                        if (val != null) _name = val as string;
                        
                        val = properties ["priority"];
                        if (val != null) _priority = Convert.ToInt32 (val);
-               }
-
+               }
 
+
                public TcpChannel (IDictionary properties,
                                   IClientChannelSinkProvider 
clientSinkProvider,
                                   IServerChannelSinkProvider 
serverSinkProvider)
@@ -75,47 +75,47 @@
                        Init (properties, clientSinkProvider, 
serverSinkProvider);
                }
 
-               public IMessageSink CreateMessageSink(string url, object 
remoteChannelData, out string objectURI)
-               {
-                       return _clientChannel.CreateMessageSink(url, 
remoteChannelData, out objectURI);
-               }
-
-               public string ChannelName
-               {
-                       get { return _name; }
-               }
-
-               public int ChannelPriority
-               {
-                       get { return _priority; }
-               }
-
-               public void StartListening (object data)
-               {
-                       if (_serverChannel != null) 
_serverChannel.StartListening (data);
-               }
-               
-               public void StopListening (object data)
-               {
-                       if (_serverChannel != null) 
_serverChannel.StopListening(data);
-                       TcpConnectionPool.Shutdown ();
-               }
-
-               public string[] GetUrlsForUri (string uri)
-               {
-                       if (_serverChannel != null) return 
_serverChannel.GetUrlsForUri(uri);
-                       else return null;
-               }
-
-               public object ChannelData
-               {
-                       get 
-                       {
-                               if (_serverChannel != null) return 
_serverChannel.ChannelData;
-                               else return null;
-                       }
-               }
+               public IMessageSink CreateMessageSink(string url, object 
remoteChannelData, out string objectURI)
+               {
+                       return _clientChannel.CreateMessageSink(url, 
remoteChannelData, out objectURI);
+               }
 
+               public string ChannelName
+               {
+                       get { return _name; }
+               }
+
+               public int ChannelPriority
+               {
+                       get { return _priority; }
+               }
+
+               public void StartListening (object data)
+               {
+                       if (_serverChannel != null) 
_serverChannel.StartListening (data);
+               }
+               
+               public void StopListening (object data)
+               {
+                       if (_serverChannel != null) 
_serverChannel.StopListening(data);
+                       TcpConnectionPool.Shutdown ();
+               }
+
+               public string[] GetUrlsForUri (string uri)
+               {
+                       if (_serverChannel != null) return 
_serverChannel.GetUrlsForUri(uri);
+                       else return null;
+               }
+
+               public object ChannelData
+               {
+                       get 
+                       {
+                               if (_serverChannel != null) return 
_serverChannel.ChannelData;
+                               else return null;
+                       }
+               }
+
                public string Parse (string url, out string objectURI)
                {
                        return TcpChannel.ParseChannelUrl (url, out objectURI);


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
___________________________________________________________________
Name: svn:eol-style
   + native


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
      2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
      2006-05-31 08:46:36 UTC (rev 61302)
@@ -5,7 +5,7 @@
 //         Lluis Sanchez Gual ([EMAIL PROTECTED])
 //
 // 2002 (C) Copyright, Ximian, Inc.
-//
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
@@ -27,16 +27,16 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
-using System;
-using System.Runtime.Remoting.Channels;
-using System.Runtime.Remoting.Messaging;
-using System.Collections;
-using System.IO;
-using System.Threading;
-
-namespace System.Runtime.Remoting.Channels.Tcp
-{
+
+using System;
+using System.Runtime.Remoting.Channels;
+using System.Runtime.Remoting.Messaging;
+using System.Collections;
+using System.IO;
+using System.Threading;
+
+namespace System.Runtime.Remoting.Channels.Tcp
+{
        internal class TcpClientTransportSink : IClientChannelSink
        {
                string _host;
@@ -50,7 +50,7 @@
 
                public IDictionary Properties
                {
-                       get 
+                       get 
                        {
                                return null;
                        }
@@ -58,7 +58,7 @@
 
                public IClientChannelSink NextChannelSink
                {
-                       get 
+                       get 
                        {
                                // we are the last one
                                return null;
@@ -185,5 +185,5 @@
 
        }
 
-
-}
+
+}


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSinkProvider.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSinkProvider.cs
      2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSinkProvider.cs
      2006-05-31 08:46:36 UTC (rev 61302)
@@ -5,7 +5,7 @@
 //         Lluis Sanchez ([EMAIL PROTECTED])
 //
 // 2002 (C) Copyright, Ximian, Inc.
-//
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
@@ -27,12 +27,12 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
-using System;
-using System.Runtime.Remoting.Channels;
-
-namespace System.Runtime.Remoting.Channels.Tcp
-{
+
+using System;
+using System.Runtime.Remoting.Channels;
+
+namespace System.Runtime.Remoting.Channels.Tcp
+{
        internal class TcpClientTransportSinkProvider : 
IClientChannelSinkProvider
        {
                public TcpClientTransportSinkProvider ()
@@ -42,12 +42,12 @@
 
                public IClientChannelSinkProvider Next
                {
-                       get 
+                       get 
                        {
                                return null;
                        }
 
-                       set 
+                       set 
                        {
                                // ignore, we are always the last in the chain 
                        }
@@ -58,5 +58,5 @@
                {
                        return new TcpClientTransportSink (url);
                }
-       }
-}
+       }
+}


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSinkProvider.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpConnectionPool.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpConnectionPool.cs
   2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpConnectionPool.cs
   2006-05-31 08:46:36 UTC (rev 61302)
@@ -5,28 +5,28 @@
 //
 // 2002 (C) Lluis Sanchez Gual
 //
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System;
 using System.Collections;
 using System.Threading;
@@ -311,4 +311,4 @@
        }
 
 
-}
+}


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpConnectionPool.cs
___________________________________________________________________
Name: svn:eol-style
   + CRLF


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs
    2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs
    2006-05-31 08:46:36 UTC (rev 61302)
@@ -62,7 +62,7 @@
 
                void Init (IServerChannelSinkProvider serverSinkProvider) 
                {
-                       if (serverSinkProvider == null) 
+                       if (serverSinkProvider == null) 
                        {
                                serverSinkProvider = new 
BinaryServerFormatterSinkProvider ();
                        }
@@ -84,16 +84,16 @@
                        // Gets channel data from the chain of channel providers
 
                        channel_data = new ChannelDataStore (null);
-                       IServerChannelSinkProvider provider = 
serverSinkProvider;
-                       while (provider != null)
-                       {
-                               provider.GetChannelData(channel_data);
-                               provider = provider.Next;
-                       }
+                       IServerChannelSinkProvider provider = 
serverSinkProvider;
+                       while (provider != null)
+                       {
+                               provider.GetChannelData(channel_data);
+                               provider = provider.Next;
+                       }
 
                        // Creates the sink chain that will process all 
incoming messages
 
-                       IServerChannelSink next_sink = 
ChannelServices.CreateServerChannelSinkChain (serverSinkProvider, this);
+                       IServerChannelSink next_sink = 
ChannelServices.CreateServerChannelSinkChain (serverSinkProvider, this);
                        sink = new TcpServerTransportSink (next_sink);
                }
                
@@ -107,35 +107,35 @@
                                         IServerChannelSinkProvider 
serverSinkProvider)
                {
                        foreach(DictionaryEntry property in properties)
-                       {
-                               switch((string)property.Key)
-                               {
+                       {
+                               switch((string)property.Key)
+                               {
                                        case "name":
                                                name = 
property.Value.ToString();
                                                break;
-                                       case "port":
+                                       case "port":
                                                port = 
Convert.ToInt32(property.Value);
-                                               break;
-                                       case "priority":
+                                               break;
+                                       case "priority":
                                                priority = 
Convert.ToInt32(property.Value);
-                                               break;
-                                       case "bindTo":
+                                               break;
+                                       case "bindTo":
                                                bindAddress = 
IPAddress.Parse((string)property.Value);
-                                               break;
-                                       case "rejectRemoteRequests":
+                                               break;
+                                       case "rejectRemoteRequests":
                                                
if(Convert.ToBoolean(properties["rejectRemoteRequests"]))
                                                        bindAddress = 
IPAddress.Loopback;
                                                break;
                                        case "supressChannelData":
                                                supressChannelData = 
Convert.ToBoolean (property.Value);
-                                               break;
+                                               break;
                                        case "useIpAddress":
                                                useIpAddress = 
Convert.ToBoolean (property.Value);
                                                break;
                                        case "machineName":
                                                host = property.Value as string;
                                                break;
-                               }
+                               }
                        }                       
                        Init (serverSinkProvider);
                }
@@ -182,19 +182,19 @@
                        return "tcp://" + host + ":" + port;
                }
                
-               public string[] GetUrlsForUri (string uri)
-               {
+               public string[] GetUrlsForUri (string uri)
+               {
                        if (!uri.StartsWith ("/")) uri = "/" + uri;
-
-                       string [] chnl_uris = channel_data.ChannelUris;
-                       string [] result = new String [chnl_uris.Length];
-
-                       for (int i = 0; i < chnl_uris.Length; i++) 
-                               result [i] = chnl_uris [i] + uri;
-                       
-                       return result;
-               }
 
+                       string [] chnl_uris = channel_data.ChannelUris;
+                       string [] result = new String [chnl_uris.Length];
+
+                       for (int i = 0; i < chnl_uris.Length; i++) 
+                               result [i] = chnl_uris [i] + uri;
+                       
+                       return result;
+               }
+
                public string Parse (string url, out string objectURI)
                {
                        return TcpChannel.ParseChannelUrl (url, out objectURI);
@@ -237,7 +237,7 @@
                        stopped = false;
 #endif 
                        listener = new TcpListener (bindAddress, port);
-                       if (server_thread == null) 
+                       if (server_thread == null) 
                        {
                                threadPool = RemotingThreadPool.GetSharedPool 
();
                                listener.Start ();
@@ -270,8 +270,8 @@
 #endif
                        listener.Stop ();
                        threadPool.Free ();
-                       server_thread.Join ();
-                       server_thread = null;                   
+                       server_thread.Join ();
+                       server_thread = null;                   
                }
        }
 


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerTransportSink.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerTransportSink.cs
      2006-05-31 08:38:41 UTC (rev 61301)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerTransportSink.cs
      2006-05-31 08:46:36 UTC (rev 61302)
@@ -28,13 +28,13 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
-using System.Collections;
-using System.Runtime.Remoting.Messaging;
-using System.IO;
-
-namespace System.Runtime.Remoting.Channels.Tcp
-{
+using System;
+using System.Collections;
+using System.Runtime.Remoting.Messaging;
+using System.IO;
+
+namespace System.Runtime.Remoting.Channels.Tcp
+{
        internal class TcpServerTransportSink : IServerChannelSink, 
IChannelSinkBase
        {
                IServerChannelSink next_sink;
@@ -44,17 +44,17 @@
                        next_sink = next;
                }
                
-               public IServerChannelSink NextChannelSink 
+               public IServerChannelSink NextChannelSink 
                {
-                       get 
+                       get 
                        {
                                return next_sink;
                        }
                }
 
-               public IDictionary Properties 
+               public IDictionary Properties 
                {
-                       get 
+                       get 
                        {
                                if (next_sink != null) return 
next_sink.Properties;
                                else return null;
@@ -65,7 +65,7 @@
                        IMessage msg, ITransportHeaders headers, Stream 
responseStream)
                {
                        ClientConnection connection = (ClientConnection)state;
-                       TcpMessageIO.SendMessageStream (connection.Stream, 
responseStream, headers, connection.Buffer);
+                       TcpMessageIO.SendMessageStream (connection.Stream, 
responseStream, headers, connection.Buffer);
                }
 
                public Stream GetResponseStream 
(IServerResponseChannelSinkStack sinkStack, object state,
@@ -91,7 +91,7 @@
                        // Reads the headers and the request stream
 
                        Stream requestStream;
-                       ITransportHeaders requestHeaders;
+                       ITransportHeaders requestHeaders;
 
                        requestStream = TcpMessageIO.ReceiveMessageStream 
(connection.Stream, out requestHeaders, connection.Buffer);
                        requestHeaders [CommonTransportKeys.IPAddress] = 
connection.ClientAddress;
@@ -102,30 +102,30 @@
                        
                        if (uri != null)
                                requestHeaders [CommonTransportKeys.RequestUri] 
= uri;
-                       
-                       // Pushes the connection object together with the sink. 
This information
-                       // will be used for sending the response in an async 
call.
-
-                       ServerChannelSinkStack sinkStack = new 
ServerChannelSinkStack();
-                       sinkStack.Push(this, connection);
-
-                       ITransportHeaders responseHeaders;
-                       Stream responseStream;
-                       IMessage responseMsg;
+                       
+                       // Pushes the connection object together with the sink. 
This information
+                       // will be used for sending the response in an async 
call.
 
-                       ServerProcessing proc = 
next_sink.ProcessMessage(sinkStack, null, requestHeaders, requestStream, out 
responseMsg, out responseHeaders, out responseStream);
-
-                       switch (proc)
-                       {
-                               case ServerProcessing.Complete:
-                                       TcpMessageIO.SendMessageStream 
(connection.Stream, responseStream, responseHeaders, connection.Buffer);
-                                       break;
-
-                               case ServerProcessing.Async:
-                               case ServerProcessing.OneWay:
-                                       break;
-                       }
+                       ServerChannelSinkStack sinkStack = new 
ServerChannelSinkStack();
+                       sinkStack.Push(this, connection);
+
+                       ITransportHeaders responseHeaders;
+                       Stream responseStream;
+                       IMessage responseMsg;
+
+                       ServerProcessing proc = 
next_sink.ProcessMessage(sinkStack, null, requestHeaders, requestStream, out 
responseMsg, out responseHeaders, out responseStream);
+
+                       switch (proc)
+                       {
+                               case ServerProcessing.Complete:
+                                       TcpMessageIO.SendMessageStream 
(connection.Stream, responseStream, responseHeaders, connection.Buffer);
+                                       break;
+
+                               case ServerProcessing.Async:
+                               case ServerProcessing.OneWay:
+                                       break;
+                       }
                }
-       }
-}
-
+       }
+}
+


Property changes on: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp/TcpServerTransportSink.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to