예제 #1
0
파일: tpkt.py 프로젝트: zha0/rdpy
 def send(self, message):
     """
     @summary: Send encompassed data
     @param message: {network.Type} message to send
     """
     RawLayer.send(self, (UInt8(Action.FASTPATH_ACTION_X224), UInt8(0),
                          UInt16Be(sizeof(message) + 4), message))
예제 #2
0
파일: tpkt.py 프로젝트: zha0/rdpy
 def sendFastPath(self, secFlag, fastPathS):
     """
     @param fastPathS: type transform to stream and send as fastpath
     @param secFlag: {integer} Security flag for fastpath packet
     """
     RawLayer.send(
         self,
         (UInt8(Action.FASTPATH_ACTION_FASTPATH | ((secFlag & 0x3) << 6)),
          UInt16Be((sizeof(fastPathS) + 3) | 0x8000), fastPathS))
예제 #3
0
파일: tpkt.py 프로젝트: ChrisTruncer/rdpy
 def sendFastPath(self, secFlag, fastPathS):
     """
     @param fastPathS: {Type | Tuple} type transform to stream and send as fastpath
     @param secFlag: {integer} Security flag for fastpath packet
     """
     RawLayer.send(self, (UInt8(Action.FASTPATH_ACTION_FASTPATH | ((secFlag & 0x3) << 6)), UInt16Be((sizeof(fastPathS) + 3) | 0x8000), fastPathS))
예제 #4
0
파일: tpkt.py 프로젝트: ChrisTruncer/rdpy
 def send(self, message):
     """
     @summary: Send encompassed data
     @param message: {network.Type} message to send
     """
     RawLayer.send(self, (UInt8(Action.FASTPATH_ACTION_X224), UInt8(0), UInt16Be(sizeof(message) + 4), message))
예제 #5
0
 def write(self, simpletype):
     RawLayer.send(self, simpletype)