运用PCAP进行文件传输
题目:Please use C language to program under Ubuntu (with gcc compiler) and implement two programs (one using sockets programming and the other using PCAP) for file transmission from PC 1 to PC 2。
就是通过两种方法实现局域网下的文件传输,一个是采用socket,另一个采用PCAP。感觉socket比较常见,C语言编程也比较容易,但是各位大神们,知道怎么通过PCAP编程进行文件传输么?PCAP一般都是用来抓包的,从来没听说过还可以用来传文件。。。求大神详细解析下,最好能给出代码~