activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r889308 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs
Date Thu, 10 Dec 2009 16:08:12 GMT
Author: tabish
Date: Thu Dec 10 16:08:11 2009
New Revision: 889308

URL: http://svn.apache.org/viewvc?rev=889308&view=rev
Log:
Fix setting the Frame command on read.

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs?rev=889308&r1=889307&r2=889308&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompFrame.cs
Thu Dec 10 16:08:11 2009
@@ -34,7 +34,7 @@
         /// Used to mark the End of the Frame.
         public const byte FRAME_TERMINUS = (byte) 0;
         
-        private string commoand;
+        private string command;
         private IDictionary properties = new Hashtable();
         private byte[] content;
 
@@ -46,7 +46,7 @@
 
         public StompFrame(string command)
         {
-            this.commoand = command;
+            this.command = command;
         }
         
         public byte[] Content
@@ -57,8 +57,8 @@
 
         public string Command
         {
-            get { return this.commoand; }
-            set { this.commoand = value; }
+            get { return this.command; }
+            set { this.command = value; }
         }
 
         public IDictionary Properties
@@ -150,14 +150,13 @@
 
         private void ReadCommandHeader(BinaryReader dataIn)
         {
-            string command;
             do 
             {
                 Tracer.Debug("Attempting to read in new Command");
-                command = ReadLine(dataIn);
+                this.command = ReadLine(dataIn);
             }
-            while(command == "");            
-            Tracer.Debug("Read new Command: " + command);
+            while(this.command == "");            
+            Tracer.Debug("Read new Command: " + this.command);
         }
 
         private void ReadHeaders(BinaryReader dataIn)



Mime
View raw message