From 13c34f3024b2d53d099413a54543db407bcf859e Mon Sep 17 00:00:00 2001 From: mart Date: Fri, 13 Nov 2015 20:09:17 +0100 Subject: [PATCH] nu wel werkende code nadat het kapot was gemaakt --- a2/code/client/gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/a2/code/client/gen.py b/a2/code/client/gen.py index 4dc28d1..1e3bc20 100755 --- a/a2/code/client/gen.py +++ b/a2/code/client/gen.py @@ -48,6 +48,7 @@ def test(corruptDestinationPort, corruptSourcePort, numpackets, payloadsize, out else: sender.senderPort = oldSourcePort sender.sendInput("A", seq, sender.lastSeqReceived + 1, None) # send some data + sender.sendInput("PA", seq, sender.lastSeqReceived + 1, m) # send some data print 'response: ', sender.sendInput("FA", ownSeqnr, sender.lastSeqReceived + 1) # close connection (the echo also closes) print 'response: ', sender.sendInput("RP", ownSeqnr+1, 0) # reset connection -- 2.20.1