• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can java be used to get every information about the data sent on a network?  RSS feed

 
Akshit dhar
Greenhorn
Posts: 18
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wish to get every information(from size to packets in which data is subdivided).

About the data (say an image file) being transferred on network(or within Local Host itself).

Suppose I want to know the number of packets in which data is subdivided and size of each packet and its unique identification number.

Is it possible?
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really. Java is designed as write once/run anywhere, so it doesn't have the device-specific capabilities needed to examine every packet sent on a network. Also, to be able to examine traffic not addressed to the current machine, you'd have to put the NIC into promiscuous mode, which requires administrative privileges.

A mixture of native code, elevated OS privileges and one or 2 other odds and ends could be used to make a Java app do what you're asking, but plain old Java doesn't have the capabilities.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!