Modified Connection struct slightly so that it stores the seq num value. Also added checksum check in accept and connect