Larger sample application: send & receive packets.