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