repair vnc

This commit is contained in:
sylvain
2013-10-16 22:21:18 +02:00
parent 9a862a401f
commit 05b732c778
6 changed files with 76 additions and 103 deletions

View File

@@ -20,7 +20,7 @@ class TPKT(RawLayer):
#length may be coded on more than 1 bytes
self._lastShortLength = 0
def connectionMade(self):
def connect(self):
'''
call when transport layer connection
is made (inherit from RawLayer)
@@ -28,7 +28,8 @@ class TPKT(RawLayer):
#header is on two bytes
self.expect(2, self.readHeader)
#no connection automata on this layer
self.connect()
if not self._presentation is None:
self._presentation.connect()
def readHeader(self, data):
'''