lib/protocol/pdu/sec.js
function Client(transport, fastPathTransport) {
	Sec.call(this, transport, fastPathTransport);
	// for basic RDP layer (in futur)
	this.enableSecureCheckSum = false;
	var self = this;
	this.transport.on('connect', function(gccClient, gccServer, userId, channels) {
		self.connect(gccClient, gccServer, userId, channels);
	}).on('close', function() {
		self.emit('close');
	}).on('error', function (err) {
		self.emit('error', err);
	});
}
function Client(transport, fastPathTransport) {
	Sec.call(this, transport, fastPathTransport);
	// for basic RDP layer (in futur)
	this.enableSecureCheckSum = false;
	var self = this;
	this.transport.on('connect', function(gccClient, gccServer, userId, channels) {
		self.connect(gccClient, gccServer, userId, channels);
	}).on('close', function() {
		self.emit('close');
	}).on('error', function (err) {
		self.emit('error', err);
	});
}
function Client ( transport , fastPathTransport ) { Sec . call ( this , transport , fastPathTransport ) ; // for basic RDP layer (in futur) this . enableSecureCheckSum = false ; var self = this ; this . transport . on ( 'connect' , function ( gccClient , gccServer , userId , channels ) { self . connect ( gccClient , gccServer , userId , channels ) ; } ) . on ( 'close' , function ( ) { self . emit ( 'close' ) ; } ) . on ( 'error' , function ( err ) { self . emit ( 'error' , err ) ; } ) ; }
Client security layer
@param transport {events.EventEmitter}
Client security layer