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

Method writeChannelJoinRequest

pyrdp/parser/mcs.py:354–362  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

packMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected