Author: tabish
Date: Thu Jun 25 15:10:40 2009
New Revision: 788384
URL: http://svn.apache.org/viewvc?rev=788384&view=rev
Log:
Fix for: http://issues.apache.org/activemq/browse/AMQNET-167
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Stomp/StompFrameStream.cs
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Stomp/StompFrameStream.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Stomp/StompFrameStream.cs?rev=788384&r1=788383&r2=788384&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Stomp/StompFrameStream.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Stomp/StompFrameStream.cs
Thu Jun 25 15:10:40 2009
@@ -31,9 +31,12 @@
/// </summary>
public class StompFrameStream
{
+ /// Used to terminate a header line or end of a headers section of the
Frame.
public const String NEWLINE = "\n";
+ /// Used to seperate the Key / Value pairing in Frame Headers
public const String SEPARATOR = ":";
- public const byte NULL = (byte) 0;
+ /// Used to mark the End of the Frame.
+ public const byte FRAME_TERMINUS = (byte) 0;
private StringBuilder builder = new StringBuilder();
private BinaryWriter ds;
@@ -47,7 +50,6 @@
this.encoding = encoding;
}
-
public byte[] Content
{
get { return content; }
@@ -119,7 +121,7 @@
}
// Always write a terminating NULL byte to end the content frame.
- ds.Write(NULL);
+ ds.Write(FRAME_TERMINUS);
}
}
}