示例#1
0
 /// <summary>Creates a new <code>Message</code>.</summary>
 /// <param name="channel"><code>Channel</code> to which this <code>Message</code>
 /// belongs.</param>
 /// <param name="msgno">Message number of the BEEP message.</param>
 /// <param name="data"><code>InputDataStream</code> containing the payload of the
 /// message.</param>
 /// <param name="messageType">Message type of the BEEP message.</param>
 /// <seealso cref="InputDataStream"></seealso>
 /// <seealso cref="Channel"></seealso>
 internal MessageImpl(ChannelImpl channel, int msgno, InputDataStream data, core.MessageType messageType)
 {
     this.channel = channel;
     this.msgno = msgno;
     this.ansno = -1;
     this.data = data;
     this.messageType = messageType;
 }
示例#2
0
 internal Frame(core.MessageType messageType, ChannelImpl channel, int msgno, bool last, long seqno, int size, int ansno)
 {
     this.messageType = messageType;
     this.channel = channel;
     this.msgno = msgno;
     this.last = last;
     this.seqno = seqno;
     this.size = size;
     this.ansno = ansno;
 }