コード例 #1
0
ファイル: mcs.py プロジェクト: ChrisTruncer/rdpy
 def sendConnectResponse(self):
     """
     @summary: Send connect response
     """
     ccReq = gcc.writeConferenceCreateResponse(self._serverSettings)
     ccReqStream = Stream()
     ccReqStream.writeType(ccReq)
     
     tmp = (ber.writeEnumerated(0), ber.writeInteger(0), self.writeDomainParams(22, 3, 0, 0xfff8), 
            ber.writeOctetstring(ccReqStream.getvalue()))
     self._transport.send((ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_RESPONSE, sizeof(tmp)), tmp))
コード例 #2
0
ファイル: mcs.py プロジェクト: zha0/rdpy
 def sendConnectResponse(self):
     """
     @summary: Send connect response
     """
     ccReq = gcc.writeConferenceCreateResponse(self._serverSettings)
     ccReqStream = Stream()
     ccReqStream.writeType(ccReq)
     
     tmp = (ber.writeEnumerated(0), ber.writeInteger(0), self.writeDomainParams(22, 3, 0, 0xfff8), 
            ber.writeOctetstring(ccReqStream.getvalue()))
     self._transport.send((ber.writeApplicationTag(Message.MCS_TYPE_CONNECT_RESPONSE, sizeof(tmp)), tmp))
コード例 #3
0
ファイル: mcs.py プロジェクト: ChrisTruncer/rdpy
 def writeDomainParams(self, maxChannels, maxUsers, maxTokens, maxPduSize):
     """
     @summary: Write a special domain parameter structure
     use in connection sequence
     @param maxChannels: {integer} number of MCS channel use
     @param maxUsers: {integer} number of MCS user used (1)
     @param maxTokens: {integer} unknown
     @param maxPduSize: {integer} unknown
     @return: {Tuple(type)} domain parameter structure
     """
     domainParam = (ber.writeInteger(maxChannels), ber.writeInteger(maxUsers), ber.writeInteger(maxTokens),
                    ber.writeInteger(1), ber.writeInteger(0), ber.writeInteger(1),
                    ber.writeInteger(maxPduSize), ber.writeInteger(2))
     return (ber.writeUniversalTag(ber.Tag.BER_TAG_SEQUENCE, True), writeLength(sizeof(domainParam)), domainParam)
コード例 #4
0
ファイル: mcs.py プロジェクト: anees042/rdpy
 def writeDomainParams(self, maxChannels, maxUsers, maxTokens, maxPduSize):
     '''
     write a special domain param structure
     use in connection sequence
     @param maxChannels: number of mcs channel use
     @param maxUsers: number of mcs user used (1)
     @param maxTokens: unknown
     @param maxPduSize: unknown
     @return: domain param structure
     '''
     domainParam = (ber.writeInteger(maxChannels), ber.writeInteger(maxUsers), ber.writeInteger(maxTokens),
                    ber.writeInteger(1), ber.writeInteger(0), ber.writeInteger(1),
                    ber.writeInteger(maxPduSize), ber.writeInteger(2))
     return (ber.writeUniversalTag(ber.Tag.BER_TAG_SEQUENCE, True), writeLength(sizeof(domainParam)), domainParam)
コード例 #5
0
ファイル: mcs.py プロジェクト: zha0/rdpy
 def writeDomainParams(self, maxChannels, maxUsers, maxTokens, maxPduSize):
     """
     @summary: Write a special domain parameter structure
     use in connection sequence
     @param maxChannels: {integer} number of MCS channel use
     @param maxUsers: {integer} number of MCS user used (1)
     @param maxTokens: {integer} unknown
     @param maxPduSize: {integer} unknown
     @return: {Tuple(type)} domain parameter structure
     """
     domainParam = (ber.writeInteger(maxChannels), ber.writeInteger(maxUsers), ber.writeInteger(maxTokens),
                    ber.writeInteger(1), ber.writeInteger(0), ber.writeInteger(1),
                    ber.writeInteger(maxPduSize), ber.writeInteger(2))
     return (ber.writeUniversalTag(ber.Tag.BER_TAG_SEQUENCE, True), writeLength(sizeof(domainParam)), domainParam)
コード例 #6
0
ファイル: mcs.py プロジェクト: anees042/rdpy
 def writeDomainParams(self, maxChannels, maxUsers, maxTokens, maxPduSize):
     '''
     write a special domain param structure
     use in connection sequence
     @param maxChannels: number of mcs channel use
     @param maxUsers: number of mcs user used (1)
     @param maxTokens: unknown
     @param maxPduSize: unknown
     @return: domain param structure
     '''
     domainParam = (ber.writeInteger(maxChannels),
                    ber.writeInteger(maxUsers), ber.writeInteger(maxTokens),
                    ber.writeInteger(1), ber.writeInteger(0),
                    ber.writeInteger(1), ber.writeInteger(maxPduSize),
                    ber.writeInteger(2))
     return (ber.writeUniversalTag(ber.Tag.BER_TAG_SEQUENCE, True),
             writeLength(sizeof(domainParam)), domainParam)