def __init__(self, colorDepth, privateKeyFileName = None, certificateFileName = None):
        """
        @param privateKeyFileName: file contain server private key
        @param certficiateFileName: file that contain public key
        @param colorDepth: 15, 16, 24
        """
        self._isReady = False
        #list of observer
        self._serverObserver = []
        #build RDP protocol stack
        self._pduLayer = pdu.layer.Server(self)
        #secure layer
        self._secLayer = sec.Server(self._pduLayer)
        #multi channel service
        self._mcsLayer = mcs.Server(self._secLayer)
        #transport pdu layer
        self._x224Layer = x224.Server(self._mcsLayer, privateKeyFileName, certificateFileName, False)
        #transport packet (protocol layer)
        self._tpktLayer = tpkt.TPKT(self._x224Layer)
        
        #fastpath stack
        self._pduLayer.initFastPath(self._secLayer)
        self._secLayer.initFastPath(self._tpktLayer)
        #set color depth of session
        self.setColorDepth(colorDepth)
def __init__ ( self , colorDepth , privateKeyFileName = None , certificateFileName = None ) : self . _isReady = False self . _serverObserver = [ ] self . _pduLayer = pdu . layer . Server ( self ) self . _secLayer = sec . Server ( self . _pduLayer ) self . _mcsLayer = mcs . Server ( self . _secLayer ) self . _x224Layer = x224 . Server ( self . _mcsLayer , privateKeyFileName , certificateFileName , False ) self . _tpktLayer = tpkt . TPKT ( self . _x224Layer ) self . _pduLayer . initFastPath ( self . _secLayer ) self . _secLayer . initFastPath ( self . _tpktLayer ) self . setColorDepth ( colorDepth )
@param privateKeyFileName: file contain server private key
        @param certficiateFileName: file that contain public key
        @param colorDepth: 15, 16, 24