Encode a Channel Join Request PDU :param stream: The destination stream to write into. :param pdu: the PDU to encode.
(self, stream: BytesIO, pdu: MCSChannelJoinRequestPDU)
| 352 | stream.write(Uint16BE.pack(pdu.initiator - MCSChannelID.USERCHANNEL_BASE)) |
| 353 | |
| 354 | def writeChannelJoinRequest(self, stream: BytesIO, pdu: MCSChannelJoinRequestPDU): |
| 355 | """ |
| 356 | Encode a Channel Join Request PDU |
| 357 | :param stream: The destination stream to write into. |
| 358 | :param pdu: the PDU to encode. |
| 359 | """ |
| 360 | stream.write(Uint16BE.pack(pdu.initiator - MCSChannelID.USERCHANNEL_BASE)) |
| 361 | stream.write(Uint16BE.pack(pdu.channelID)) |
| 362 | stream.write(pdu.payload) |
| 363 | |
| 364 | def writeChannelJoinConfirm(self, stream: BytesIO, pdu: MCSChannelJoinConfirmPDU): |
| 365 | """ |