change project format

This commit is contained in:
sylvain
2013-11-03 20:55:00 +01:00
parent 58e18d3179
commit 452a544a72
12 changed files with 200 additions and 182 deletions

23
rdpy/protocol/rdp/rdp.py Normal file
View File

@@ -0,0 +1,23 @@
'''
@author: sylvain
'''
from twisted.internet import protocol
import tpkt, tpdu, mcs
class Factory(protocol.Factory):
'''
Factory of RFB protocol
'''
def __init__(self):
self._protocol = tpkt.TPKT(tpdu.TPDU(mcs.MCS()))
def buildProtocol(self, addr):
return self._protocol;
def startedConnecting(self, connector):
print 'Started to connect.'
def clientConnectionLost(self, connector, reason):
print 'Lost connection. Reason:', reason
def clientConnectionFailed(self, connector, reason):
print 'Connection failed. Reason:', reason