public void SendHeader()
 {
     lock (m_writer)
     {
         m_writer.Write(Encoding.ASCII.GetBytes("AMQP"));
         m_writer.Write((byte)1);
         m_writer.Write((byte)1);
         m_writer.Write((byte)m_endpoint.Protocol.MajorVersion);
         m_writer.Write((byte)m_endpoint.Protocol.MinorVersion);
         m_writer.Flush();
     }
 }
 public void SendHeader()
 {
     lock (m_writer)
     {
         m_writer.Write(Encoding.ASCII.GetBytes("AMQP"));
         if (Endpoint.Protocol.Revision != 0)
         {
             m_writer.Write((byte)0);
             m_writer.Write((byte)Endpoint.Protocol.MajorVersion);
             m_writer.Write((byte)Endpoint.Protocol.MinorVersion);
             m_writer.Write((byte)Endpoint.Protocol.Revision);
         }
         else
         {
             m_writer.Write((byte)1);
             m_writer.Write((byte)1);
             m_writer.Write((byte)Endpoint.Protocol.MajorVersion);
             m_writer.Write((byte)Endpoint.Protocol.MinorVersion);
         }
         m_writer.Flush();
     }
 }
Beispiel #3
0
 public void Flush()
 {
     BitFlush();
     m_writer.Flush();
 }