Mock socket based on pcap file data