From: mart & charlie Date: Fri, 22 Jan 2016 19:01:50 +0000 (-0500) Subject: update X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=1aea97deed3e6ee7b327141e4cf4715a2d8d3ca8;p=tt2015.git update --- diff --git a/.gitignore b/.gitignore index fd12962..7b58c03 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ C:\\nppdf32Log\\debuglog.txt [0-9][0-9].py sn.txt *.exe +*.swp diff --git a/a4/tcp/adapter/.listener.py.swp b/a4/tcp/adapter/.listener.py.swp deleted file mode 100644 index 2e6fddc..0000000 Binary files a/a4/tcp/adapter/.listener.py.swp and /dev/null differ diff --git a/a4/tcp/adapter/listener.py b/a4/tcp/adapter/listener.py index 94896c9..17d6f21 100644 --- a/a4/tcp/adapter/listener.py +++ b/a4/tcp/adapter/listener.py @@ -34,6 +34,7 @@ if __name__ == "__main__": print 'received: {}'.format(data) if data == 'RES': print 'resetting the SUT...' + sender.sendReset() sender = Sender(serverIP="127.0.0.1", networkInterface="lo", isLocal=True, serverPort=serverPort, waitTime=1, isVerbose=0) data = '' continue @@ -59,7 +60,6 @@ if __name__ == "__main__": seqnr += 1 print 'RP: {}'.format(seqnr) response = sender.sendInput("RP", seqnr, 0) - sender.sendReset() elif data == 'FIN': response = 'Timeout' if sender.lastSeqReceived != None: