/// <summary> /// Writes a stream:stream. /// </summary> /// <param name="stream">Stream containing the stream:stream packet to send.</param> public override void WriteStartTag(Jabber.Protocol.Stream.Stream stream) { Write(stream.StartTag()); }
private bool FakeReceivedStream() { Jabber.Protocol.Stream.Stream stream = new Jabber.Protocol.Stream.Stream(m_doc, NS); stream.Version = "1.0"; stream.ID = m_authID; byte[] sbuf = ENC.GetBytes(stream.StartTag()); if (!m_listener.OnRead(this, sbuf, 0, sbuf.Length)) { Close(); return false; } return true; }