From: mart Date: Fri, 13 Nov 2015 19:09:17 +0000 (+0100) Subject: nu wel werkende code nadat het kapot was gemaakt X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=13c34f3024b2d53d099413a54543db407bcf859e;p=tt2015.git nu wel werkende code nadat het kapot was gemaakt --- 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