Пример #1
0
 def sendConnectInitial(self):
     """
     @summary: Send connect initial packet
     client automata function
     """
     ccReq = gcc.writeConferenceCreateRequest(self._clientSettings)
     ccReqStream = Stream()
     ccReqStream.writeType(ccReq)
     
     tmp = (ber.writeOctetstring("\x01"), ber.writeOctetstring("\x01"), ber.writeBoolean(True),
            self.writeDomainParams(34, 2, 0, 0xffff),
            self.writeDomainParams(1, 1, 1, 0x420),
            self.writeDomainParams(0xffff, 0xfc17, 0xffff, 0xffff),
            ber.writeOctetstring(ccReqStream.getvalue()))
     self._transport.send((ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_INITIAL, sizeof(tmp)), tmp))
Пример #2
0
Файл: mcs.py Проект: zha0/rdpy
 def sendConnectInitial(self):
     """
     @summary: Send connect initial packet
     client automata function
     """
     ccReq = gcc.writeConferenceCreateRequest(self._clientSettings)
     ccReqStream = Stream()
     ccReqStream.writeType(ccReq)
     
     tmp = (ber.writeOctetstring("\x01"), ber.writeOctetstring("\x01"), ber.writeBoolean(True),
            self.writeDomainParams(34, 2, 0, 0xffff),
            self.writeDomainParams(1, 1, 1, 0x420),
            self.writeDomainParams(0xffff, 0xfc17, 0xffff, 0xffff),
            ber.writeOctetstring(ccReqStream.getvalue()))
     self._transport.send((ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_INITIAL, sizeof(tmp)), tmp))
Пример #3
0
 def sendConnectInitial(self):
     '''
     send connect initial packet
     '''
     ccReq = gcc.writeConferenceCreateRequest(self._clientSettings)
     ccReqStream = Stream()
     ccReqStream.writeType(ccReq)
     
     tmp = (ber.writeOctetstring("\x01"), ber.writeOctetstring("\x01"), ber.writeBoolean(True),
            self.writeDomainParams(34, 2, 0, 0xffff),
            self.writeDomainParams(1, 1, 1, 0x420),
            self.writeDomainParams(0xffff, 0xfc17, 0xffff, 0xffff),
            ber.writeOctetstring(ccReqStream.getvalue()))
     self._transport.send((ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_INITIAL, sizeof(tmp)), tmp))
     #we must receive a connect response
     self.setNextState(self.recvConnectResponse)
Пример #4
0
    def sendConnectInitial(self):
        '''
        send connect initial packet
        '''
        ccReq = gcc.writeConferenceCreateRequest(self._clientSettings)
        ccReqStream = Stream()
        ccReqStream.writeType(ccReq)

        tmp = (ber.writeOctetstring("\x01"), ber.writeOctetstring("\x01"),
               ber.writeBoolean(True),
               self.writeDomainParams(34, 2, 0, 0xffff),
               self.writeDomainParams(1, 1, 1, 0x420),
               self.writeDomainParams(0xffff, 0xfc17, 0xffff, 0xffff),
               ber.writeOctetstring(ccReqStream.getvalue()))
        self._transport.send(
            (ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_INITIAL,
                                     sizeof(tmp)), tmp))
        #we must receive a connect response
        self.setNextState(self.recvConnectResponse)