MCPcopy
hub / github.com/GoSecure/pyrdp / writeAttachUserConfirm

Method writeAttachUserConfirm

pyrdp/parser/mcs.py:343–352  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

packMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected