update
authormart & charlie <tt1516@ru.nl>
Fri, 22 Jan 2016 19:01:50 +0000 (14:01 -0500)
committermart & charlie <tt1516@ru.nl>
Fri, 22 Jan 2016 19:01:50 +0000 (14:01 -0500)
.gitignore
a4/tcp/adapter/.listener.py.swp [deleted file]
a4/tcp/adapter/listener.py

index fd12962..7b58c03 100644 (file)
@@ -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 (file)
index 2e6fddc..0000000
Binary files a/a4/tcp/adapter/.listener.py.swp and /dev/null differ
index 94896c9..17d6f21 100644 (file)
@@ -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: