简体   繁体   English

检测客户端是否正在使用java中的套接字进行下载

[英]Detect if client is downloading using socket in java

Can I use socket for detecting if the client is downloading?我可以使用套接字来检测客户端是否正在下载吗? I want also to get some information about the file downloading.我还想获取有关文件下载的一些信息。 Some information are the ff: File Name File Size File Type一些信息是 ff: File Name File Size File Type

I tried researching on JNETPCAP but they used packet and I don't understand about the packets.我尝试研究 JNETPCAP,但他们使用了数据包,我不了解数据包。

As far as I know, you can't detect if the client is downloading something, unless maybe you could intercept the network traffic (you might need promiscuous mode).据我所知,您无法检测客户端是否正在下载某些内容,除非您可以拦截网络流量(您可能需要混杂模式)。 That'd be really difficult to do though.不过这真的很难做到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM