Encode a Attach User Confirm PDU :param stream: The destination stream to write into. :param pdu: the PDU to encode.
(self, stream: BytesIO, pdu: MCSAttachUserConfirmPDU)
| 341 | pass |
| 342 | |
| 343 | def writeAttachUserConfirm(self, stream: BytesIO, pdu: MCSAttachUserConfirmPDU): |
| 344 | """ |
| 345 | Encode a Attach User Confirm PDU |
| 346 | :param stream: The destination stream to write into. |
| 347 | :param pdu: the PDU to encode. |
| 348 | """ |
| 349 | stream.write(per.writeEnumeration(pdu.result)) |
| 350 | |
| 351 | if pdu.initiator is not None: |
| 352 | stream.write(Uint16BE.pack(pdu.initiator - MCSChannelID.USERCHANNEL_BASE)) |
| 353 | |
| 354 | def writeChannelJoinRequest(self, stream: BytesIO, pdu: MCSChannelJoinRequestPDU): |
| 355 | """ |