Mock UDP socket based on pcap file data.