cvs commit: spice/sandbox/packet/src/java/org/realityforge/packet/protocol ProtocolWriter.java

Peter Donald <[email protected]> Tue, 11 Nov 2003 22:08:18 -0800
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/11/11 22:08:18

  Modified:    sandbox/packet/src/java/org/realityforge/packet/protocol
                        ProtocolWriter.java
  Log:
  Make sure message is flipped
  
  Revision  Changes    Path
  1.2       +3 -1      spice/sandbox/packet/src/java/org/realityforge/packet/protocol/ProtocolWriter.java
  
  Index: ProtocolWriter.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/packet/src/java/org/realityforge/packet/protocol/ProtocolWriter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProtocolWriter.java	12 Nov 2003 01:05:58 -0000	1.1
  +++ ProtocolWriter.java	12 Nov 2003 06:08:18 -0000	1.2
  @@ -18,7 +18,7 @@
    * message buffer.
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2003/11/12 01:05:58 $
  + * @version $Revision: 1.2 $ $Date: 2003/11/12 06:08:18 $
    */
   class ProtocolWriter
   {
  @@ -60,6 +60,7 @@
           m_message.put( ProtocolConstants.S2C_CONNECTED );
           m_message.putShort( sessionID );
           m_message.putShort( sessionAuth );
  +        m_message.flip();
           forceWriteMessage( m_message, channel );
       }
   
  @@ -78,6 +79,7 @@
       {
           m_message.clear();
           m_message.put( control );
  +        m_message.flip();
           forceWriteMessage( m_message, channel );
       }
   
  
  
  


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/